Connecting simulink with m file
Show older comments
Hi .. I want to connect my simulink model with the m-file to put the m file in another program.. how would I do that?? any suggestion??
Regards
1 Comment
rend alrays
on 13 Nov 2015
Answers (1)
Walter Roberson
on 13 Nov 2015
0 votes
It is not clear what assistance you would like?
Also, when you say you want to put it into another program, are you referring to compiling the code?
2 Comments
rend alrays
on 13 Nov 2015
Walter Roberson
on 13 Nov 2015
call open_system() to load the model. call set_param() if you need to change parameters. Call sim() to run the model.
Categories
Find more on Programmatic Model Editing in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!