Can MATLAB interface with a .NET language such as C#?
2 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
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.
Risposta accettata
MathWorks Support Team
il 22 Gen 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.
0 Commenti
Più risposte (0)
Vedere anche
Categorie
Scopri di più su MATLAB Compiler SDK in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!