I know that I can run script in simulink by adding it: File/Model Properties/Callbacks -> InitFcn (script name in blank space).
It is not working like in this model:
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!