MATLAB: How to generate doxygen compatible comments using MathWorks code generation products

cgtcodecommentsdoxygengenerationsimulinktemplate

Is it possible to generate doxygen compatible comments using MathWorks code generation products?

Best Answer

You may achieve this functionality by using Code Generation Template files, or CGTs, to include doxygen-compatible file and function comment blocks in the generated code. In CGT's, comment blocks are specified using open and close tags. You can add a "style" attribute to these tags to apply doxygen formatting to the resulting comments. Please refer to the following documentation page for additional details on the different tags and attributes available: