Connecting simulink with m file
1 view (last 30 days)
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
Answers (1)
Walter Roberson
on 13 Nov 2015
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
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.
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!