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...

Answers (0)

This question is closed.

Asked:

on 23 Aug 2011

Closed:

on 20 Aug 2021

Community Treasure Hunt

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

Start Hunting!