With MATLAB Compiler SDK™, integrating compiled MATLAB functions into a .NET application involves using a combination of APIs that initialize MATLAB Runtime, load the compiled MATLAB functions into MATLAB Runtime, and manage the data that passes between the .NET code and MATLAB.
The two data conversion APIs that marshal and format data between .NET
and MATLAB are
MWArray, which uses derived
types that map to MATLAB data types, and the native .NET API, which uses native
.NET types and supports .NET remoting. In addition, type-safe
interfaces provide an alternate set of methods that work directly
with native .NET data types.
To integrate MATLAB functions with servers developed in .NET, use either the .NET remoting API or the Windows Communications Foundation framework from Microsoft®. These APIs facilitate the development of distributed applications with features for deploying active figures over the web and accessing .NET remoting capabilities.
|Create .NET assembly for deployment outside MATLAB|
|Options for building .NET assemblies|
|Create an installer for files generated by MATLAB Compiler|
|Options for creating MATLAB Compiler package installers|
|Set trust setting to load .NET assemblies from network drive|
|Generate type-safe API|
Create a .NET core application that can run on UNIX® systems.
Build a .NET application using C# or Visual Basic®.
Build a .NET application using a MATLAB function that takes a variable number of arguments.
Create a .NET assembly containing multiple functions to implement a matrix math program.
Build a .NET assembly that applies optimization routines to objective functions
Create a .NET assembly containing multiple classes to implement a signal analyzer application.
Handle interaction in a console-based program that creates MATLAB figures.
Learn how the
MWArray classes convert data between .NET and
See examples on manually converting between native .NET data types and MATLAB types.
Refer to the rules for converting .NET types to MATLAB types.
Learn the different class methods generated for each MATLAB function.
See the data types that cannot be shared across .NET assemblies.
Consider using type-safe interfaces instead of
MWArray to work
directly with native data types.
Create a multiplication program that uses native .NET data types through a type-safe interface.
Extend .NET applications with Managed Extensibility Framework (MEF) plug-ins using a type-safe API.
Build a remotable .NET component using the Library Compiler app or programmatically.
Decide between the
MWArray and native .NET APIs for data
marshaling in an assembly.
Learn the advantages of implementing remotable .NET components.
Deploy a Windows® Communications Foundation (WCF) component using a type-safe API.