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 个评论

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?
Maybe this is helpful for you?
https://www.mathworks.com/help/compiler_sdk/gs/create-a-cc-application-with-matlab-code.html

请先登录,再进行评论。

回答(0 个)

类别

帮助中心File Exchange 中查找有关 MATLAB Coder 的更多信息

产品

版本

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by