Effacer les filtres
Effacer les filtres

Matlab codegen and CLI/CLR class

3 vues (au cours des 30 derniers jours)
Tulio
Tulio le 30 Déc 2013
Réponse apportée : Tulio le 31 Déc 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

Réponse acceptée

Tulio
Tulio le 31 Déc 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.

Plus de réponses (0)

Catégories

En savoir plus sur MATLAB Coder dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by