Interoperating between Matlab and C#

smaclell picture smaclell · Jan 12, 2009 · Viewed 22k times · Source

After peeking around the internet it looks like it is possible to interop between C# and Matlab. I am wondering if anyone has had success with it and what they did to do so. If possible somehow pulling it off without the use of COM. Thanks for your time.

Answer

Todd picture Todd · Jan 12, 2009

Beginning with the R2009a release of MATLAB, .NET objects can be accessed from MATLAB:

http://www.mathworks.com/help/techdoc/matlab_external/brpb5k6.html

In older versions of MATLAB, it is possible to access .NET objects from MATLAB using CCW:

http://www.mathworks.com/support/solutions/data/1-5U8HND.html?solution=1-5U8HND

and the MATLAB engine from .NET:

http://www.mathworks.com/access/helpdesk/help/techdoc/index.html?/access/helpdesk/help/techdoc/matlab_external/f135590.html#f135616

You can also use the MATLAB Builder NE to wrap m-code into .NET assemblies.

http://www.mathworks.com/products/netbuilder/