How to write append a few lines in model_initialize function for a MATLAB function block in Simulink?
3 views (last 30 days)
Show older comments
Soham Sinha on 24 Nov 2021
I am creating a MATLAB function block in Simulink. For that function block I want to append a few lines of code in the model_initialize function. I know that I can just create an initialize subsystem to write that code. However, I do not want to create a separate initialize block.
Is it possible to generate a few lines of code in the model_initialize function for a MATLAB block in Simulink? This is for Embedded Coder code generation.
Find more on Deployment, Integration, and Supported Hardware 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!