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

2 Ansichten (letzte 30 Tage)
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.

Akzeptierte Antwort

MathWorks Support Team
MathWorks Support Team am 22 Jan. 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.

Weitere Antworten (0)

Kategorien

Mehr zu MATLAB Compiler SDK finden Sie in Help Center und File Exchange

Produkte


Version

R2006b

Community Treasure Hunt

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

Start Hunting!

Translated by