I have a script file which currently uses "From Workspace" / "To workspace" blocks as inputs / outputs for a simMechanics model. This works fine. However I wish to loop through many simulations of the model in my script, so that I can take the output of the model on a first run, do something with that output in my script file and then update the input of the model and run it again, and so on.
How would I do this? Any help would be appreciated!
No products are associated with this question.
I think you can use sim command to run your simulink block diagram from your script m-file ... sim('block diagram name') stay in touch just if your problem persists more ...
Play games and win prizes!Learn more