How to conjugate simulink model and script ?

2 views (last 30 days)
Mateusz
Mateusz on 17 Sep 2014
Answered: Marco on 8 Nov 2014
How can I run a simulation in conjugation with script ( m-file)? I would like to build simulation model similar to this one:

Answers (2)

Mateusz
Mateusz on 19 Sep 2014
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:

Marco
Marco on 8 Nov 2014
I have the same problem - to run one or more scripts (not functions) and to use the created variables for the simulation, without doing it manually.
Is there somebody who can do it? Thanks

Categories

Find more on General Applications in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!