Codegen of header comments

4 ビュー (過去 30 日間)
Y
Y 2013 年 1 月 17 日
回答済み: Akshat Dalal 2025 年 2 月 26 日
Is there a way for codegen to not generate the date in the header comment. In other words omit the line "C source code generated on: xxxx:" if that is not possible is it possible to not generate any header comments? I still want the comments in the code just not the header stuff.
  6 件のコメント
Y
Y 2013 年 1 月 28 日
no one knows?
Kaustubha Govind
Kaustubha Govind 2013 年 2 月 1 日
Y: I don't know the answer for MATLAB Coder (I know how you would do it using Simulink Coder). Could you check with MathWorks Tech Support about this and put in an enhancement request if the functionality doesn't exist?

サインインしてコメントする。

回答 (1 件)

Akshat Dalal
Akshat Dalal 2025 年 2 月 26 日
Hi
You can modify the default code generation template. It has a <SourceGeneratedOn> token which generates the date. Please refer the following documentation for more information: https://www.mathworks.com/help/ecoder/ug/generate-custom-file-and-function-banners-for-matlab-code-generation.html
Hope this helps.

カテゴリ

Help Center および File ExchangeSimulink Coder についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by