이 번역 페이지는 최신 내용을 담고 있지 않습니다. 최신 내용을 영문으로 보려면 여기를 클릭하십시오.
MATLAB의 .NET 데이터형
.NET 메서드나 함수를 호출할 경우 MATLAB은 대부분의 프리미티브 MATLAB 인수를 자동으로 .NET 유형으로 변환합니다. 문자열로 구성된 배열을 전달하려면 cell 함수를 사용하십시오. 다른 MATLAB 유형으로 구성된 배열을 전달하려면 NET.createArray 함수를 사용하십시오. 구조체형 배열, 희소 배열 또는 복소수는 .NET 메서드에 전달할 수 없습니다.
MATLAB에서는 프리미티브 .NET 반환 유형을 상응하는 MATLAB 유형이 있는 경우 자동으로 변환합니다. System.String 객체를 변환하려면 char 함수를 호출하십시오. .NET 함수가 배열을 반환하는 경우, MATLAB 명령에 데이터를 사용하기 전에 사각형 배열에는 해당하는 MATLAB 숫자형 함수를 사용하고 가변 배열(Jagged Array)에는 cell 함수를 사용하십시오. MATLAB 사전을 대응하는 .NET 객체로 변환하려면 NET.createDictionary 함수를 호출하십시오.
함수
NET.createArray | Array for nonprimitive .NET types |
NET.createDictionary | Create generic .NET dictionary (R2023a 이후) |
NET.disableAutoRelease | Lock .NET object representing Runtime Callable Wrapper (COM wrapper) |
NET.enableAutoRelease | Unlock .NET object representing Runtime Callable Wrapper (COM wrapper) |
도움말 항목
- Pass MATLAB Data to .NET Functions
MATLAB converts .NET function arguments into .NET types.
- Handle Data Returned from .NET Objects
Mapping C# .NET types to MATLAB types.
- Pass System.String Arguments
Examples using
System.Stringarguments. - Use Cell Arrays of .NET Data
Tips for working with contents of nested
System.Objectarrays in MATLAB. - Excel 스프레드시트 데이터로 구성된 셀형 배열 읽어 들이기
Microsoft® .NET Framework에 대한 이 예제에서는 Microsoft Excel® 스프레드시트 데이터의 열을 MATLAB 유형으로 변환하는 방법을 보여줍니다.
- Pass System.Enum Arguments
Examples using
System.Enumarguments. - Pass System.Nullable Arguments
Examples using
System.Nullablearguments. - Pass Jagged Arrays
Examples using .NET jagged arrays.
- Use MATLAB Arrays with .NET Functions
Pass MATLAB arrays to .NET functions and convert data returned from .NET functions to MATLAB arrays.
- Convert Returned .NET Data to MATLAB Cell Arrays
문제 해결
Limitations to Support of .NET Arrays
.NET features not supported in MATLAB.