How to write append a few lines in model_initialize function for a MATLAB function block in Simulink?

조회 수: 3 (최근 30일)
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.

답변 (0개)

제품


릴리스

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by