Executing Codes only Once

Hi
I wrote a program in Embedded Matlab Function in Simulink. I have to define some variables as 0(zero) at first but they will be 0 only for the beginning. Then these variables are calculated in the program. Is there a way to execute the definatiion commands only once? Thanks in advice...

回答(0 个)

此问题已关闭。

提问:

2011-8-23

关闭:

2021-8-20

Community Treasure Hunt

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

Start Hunting!

Translated by