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

7 views (last 30 days)
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.

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 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:
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.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!