Matlab codegen and CLI/CLR class

2 次查看(过去 30 天)
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
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 个)

类别

Help CenterFile Exchange 中查找有关 MATLAB Coder 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by