MATLAB: How to write an initialization values in simulink

initialization values in simulink

I'd like to write some values that are initialized once in the beginning in the program. The system is closed loop and there are equations depend on itself Ex.:
a= w*e+b;
b=f/a;
so we must write at the first, the values of ( w, e, and f) then the system will use the values which are being extracted from the simulink.

Best Answer

You should write them to File->Model Properties->Model Properties->Callbacks->InitFcn.