Comments in MATLAB Function Block do not appear in generated code

7 次查看(过去 30 天)
I am generating code for a MATLAB Function Block using Embedded Coder in 2018b. How do I include comments from the MATLAB Function in generated code?

采纳的回答

MathWorks Support Team

In order to include user comments in generated code, please enable the "MATLAB user comments" option under Configuration Parameters > Code Generation > Comments. Additionally, if you want to include the MATLAB code as comments, please enable the "MATLAB source code as comments" option.

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 MATLAB Coder 的更多信息

产品


版本

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by