How to make block description of a simulink function block displayed above function header?
2 views (last 30 days)
Show older comments
Xiaojie Qiu
on 24 Oct 2018
Commented: Xiaojie Qiu
on 29 Oct 2018
Hi everyone,
I'm using simulink function block to generate C code. For simulink function block, I add a brief function description to the block as shown below on the left side.
After code generation, the function description is inserted inside the function body.
So, I want to know if there is a way to display this description above the function header instead of inside the function body?
Thanks!

0 Comments
Accepted Answer
zhichuan wang
on 24 Oct 2018
I think I get you point. You can modify the CODE TEMPLATES FILE in Configuration Parameters(Code Generation->Templates-Code templates-Source file template) to do what you want.
More Answers (0)
See Also
Categories
Find more on Simulink Functions in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!