Main Content

MWArray API를 사용하여 .NET 애플리케이션에 배포하기

데이터 교환용 MWArray API를 사용하여, 패키징된 MATLAB® 함수를 .NET 애플리케이션에 연동

MATLAB Compiler SDK™를 사용하면, 컴파일된 MATLAB 함수를 .NET 애플리케이션에 연동하려면 MATLAB Runtime을 초기화하는 API, 컴파일된 MATLAB 함수를 MATLAB Runtime으로 불러오는 API, .NET 코드와 MATLAB 사이의 데이터 전달을 관리하는 API를 조합해서 사용해야 합니다.

.NET과 MATLAB 간에 데이터를 마샬링하고 포맷하는 데이터 변환 API는 2가지이며, 그중 하나는 MATLAB 데이터형으로 매핑되는 파생 데이터형을 사용하는 MWArray이고, 다른 하나는 네이티브 .NET 데이터형을 사용하여 .NET Remoting을 지원하는 네이티브 .NET API입니다. 또한 형식 안전(type-safe) 인터페이스는 네이티브 .NET 데이터형과 직접 작동하는 대체 메서드 세트를 제공합니다.

.NET에서 개발된 서버와 MATLAB 함수를 연동하려면 .NET Remoting API 또는 Microsoft®의 Windows Communications Foundation 프레임워크를 사용하십시오. 이러한 API를 사용하면 분산 애플리케이션을 쉽게 개발하여 웹상에서 활성 Figure를 배포하거나 .NET Remoting 기능에 액세스할 수 있습니다.

함수

compiler.build.dotNETAssemblyCreate .NET assembly for deployment outside MATLAB (R2021a 이후)
compiler.build.DotNETAssemblyOptionsOptions for building .NET assemblies (R2021a 이후)
compiler.build.ResultsCompiler build results object (R2020b 이후)
compiler.package.installerCreate an installer for files generated by MATLAB Compiler (R2020a 이후)
compiler.package.InstallerOptionsOptions for creating MATLAB Compiler package installers (R2020a 이후)
enableTSUtilsfromNetworkDriveSet trust setting to load .NET assemblies from network drive
ntswrapGenerate type-safe API

클래스

모두 확장

MWArrayEncapsulate native MATLAB mxArray
MWCellArrayManaged representation of MATLAB cell array
MWCharArrayManaged representation of MATLAB character array
MWIndexArrayRoot for MWArray indexing classes
MWLogicalArrayManaged representation of MATLAB logical array
MWNumericArrayManaged representation of MATLAB numeric array types
MWObjectArrayWrap native .NET object in MATLAB array type
MWStringArrayManaged representation of MATLAB string array
MWStructArrayManaged representation of MATLAB structure array
MWArrayType EnumerationMWArray type enumeration
MWArrayComponent Enumeration MATLAB numeric array component enumerator
MWArrayComplexity EnumerationMATLAB numeric array complexity enumerator
MWNumericType EnumerationMATLAB numeric array data type enumerator
MWArrayEncapsulate native MATLAB mxArray
MWCellArrayManaged representation of MATLAB cell array
MWStructArrayManaged representation of MATLAB structure array
ImagesConvert RGB data from MATLAB into .NET System.Drawing.Image object
LOGFILEAttributeRepresents MATLAB Runtime option that allows users to pass name of logfile that catches MATLAB Runtime output
MATLABSignatureEmbed MATLAB function signature information in assembly
MCRVersionTag assembly with version of MATLAB Runtime that it requires
MWCTFStreamReaderRead CTF bytes from stream
MWExceptionGet stack trace of M-Code
MWMCRRead CTF bytes from stream
MWMCROptionAttributeRepresent MATLAB Runtime option
NativeGCAttributeDefine custom assembly attribute that keeps track of native heap allocations for instances of MWArray classes
NOJVMAttribute MATLAB Runtime option that allows users to launch MATLAB Runtime without JAVA Virtual Machine support

도움말 항목

요구 사항

.NET 프레임워크를 사용하여 생성 및 연동하기

.NET 6.0을 사용하여 생성 및 연동하기

샘플 애플리케이션

데이터 변환

형식 안전 API

.NET Remoting

.NET 어셈블리 문제 해결