Matlab codegen and CLI/CLR class

3 ビュー (過去 30 日間)
Tulio 2013 年 12 月 30 日
回答済み: Tulio 2013 年 12 月 31 日
Hi everyone,
I'm trying to add some code generated from Matlab into a a project in C#. So basically the C# code will call a C++ CLI class that contains the code generated by Matlab. My question is how exactly do I have to do in order to make it work? I can see the big picture but not the fine prints of it( I'm very new to this). Is there any other way to do it?
Thanks in advance


Tulio 2013 年 12 月 31 日
Making a long story short. After generating the C shared library you add the project.H project.Lib and project.dll as a library and call it in your CLI class function. You would also have to initialize and terminate the function but after you figure it out doesn't seem to be that complicated.

その他の回答 (0 件)


Find more on MATLAB Coder in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by