- right click on your simulink model
- click on model properties
- click on callbacks
- click on stop fcn
- type your m filename
Running m file from simulink
8 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Pat
am 2 Dez. 2012
Beantwortet: Mohammad Ali Sharifian
am 24 Mär. 2024
I have a mile in which i have to call from sinulink,the m file willl plot a graph ,please tell how to call m file from simulink without using from workspace block
0 Kommentare
Akzeptierte Antwort
Azzi Abdelmalek
am 2 Dez. 2012
You can use callback in simulink, fellow thhese steps
0 Kommentare
Weitere Antworten (1)
Mohammad Ali Sharifian
am 24 Mär. 2024
If the m-file is just for plotting, I recommend pasting your m-file codes in: model properties>callbacks>stop fcn
This way when you run your simulink, the results will be plotted automatically.
0 Kommentare
Siehe auch
Kategorien
Mehr zu Interactive Model Editing finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!