Matlab codegen and CLI/CLR class

1 view (last 30 days)
Tulio
Tulio on 30 Dec 2013
Answered: Tulio on 31 Dec 2013
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

Accepted Answer

Tulio
Tulio on 31 Dec 2013
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.

More Answers (0)

Categories

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!