Can MATLAB interface with a .NET language such as C#?

2 visualizaciones (últimos 30 días)
I would like to load .NET assemblies into MATLAB, directly call into the Common Language Runtime (CLR) to use Microsoft .NET code to access my existing solutions, and have MATLAB expose its classes as .NET classes.

Respuesta aceptada

MathWorks Support Team
MathWorks Support Team el 22 de En. de 2010
This enhancement has been incorporated in Release 2009a (R2009a). For previous product releases, read below for any possible workarounds:
The ability to interface with a .NET language (such as C#) in the manner of the COM Automation or Generic DLL interface is not available in MATLAB.
To work around this issue, you may be able to integrate your MATLAB code into a larger .NET program using the MATLAB Compiler and Builder for .NET:
<http://www.mathworks.com/products/netbuilder/>
<http://www.mathworks.com/products/compiler/>
Alternatively, it is possible to make an ActiveX wrapper around your .NET assembly and expose its methods to MATLAB or any other COM compliant client. Examples can be found on the web by searching for different combinations of the keywords COM, wrapper, ActiveX, assembly.

Más respuestas (0)

Categorías

Más información sobre MATLAB Compiler SDK en Help Center y File Exchange.

Productos


Versión

R2006b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by