Comments in MATLAB Function Block do not appear in generated code

8 vues (au cours des 30 derniers jours)
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?

Réponse acceptée

MathWorks Support Team
MathWorks Support Team le 22 Fév 2019

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.

Plus de réponses (0)

Catégories

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

Produits


Version

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by