Interoperating between Matlab and C#

后端 未结 7 1521
野趣味
野趣味 2020-11-30 06:08

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.

7条回答
  •  心在旅途
    2020-11-30 06:24

    Yes, I managed to do that and it was mostly painless.

    You'd have to compile your MATLAB code for .NET (as explained in pervious answers), run MCR installer, reference MWArray.dll and the complied code dll in your .NET project and off you go.

    The only annoyance was the casting (and sometimes multiple castings!) that the interface forces on you (using explicit in the cast operators)

提交回复
热议问题