Is it possible to generate C/C++ code for a Simulink model using the Matlab command window?

Rather than using the Coder Toolbox to generated C/C++ code from a Simulink model, via the 'C++ Code' tab -> 'Generate Code', I was wondering if there was a way to perform the same process but from the Matlab Command Window. Possibly something akin to how codegen uses Matlab files. However, the difference being your command would point to a Simulink model in order to produce the desired C/C++ code. I feel like this should be possible, but I cannot find any information on what a command like that would look like.

更多回答(0 个)

类别

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

产品

版本

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by