Is it possible to convert Matlab classes to C/C++ code using the Matlab Coder App?

I am try to convert my classes into C/C++ code. I have tried creating a function that calls the class, but when I convert this function the class does not convert only the function. So I was wondering if it is possible to convert a Matlab class to C/C++ using the Matlab Coder App?

3 commentaires

I have no idea about the answer to your question as I know nothing about matlab coder. However, I do know that C and C++ are two different languages despite some superficial similarities. Plenty of valid C code is not valid C++ and most C++ is not valid C.
So which language do you want?
C++ would be preferable.
Maybe this is helpful for you?
https://www.mathworks.com/help/compiler_sdk/gs/create-a-cc-application-with-matlab-code.html

Connectez-vous pour commenter.

Réponses (0)

Catégories

En savoir plus sur MATLAB Coder dans Centre d'aide et File Exchange

Produits

Version

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by