- 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
조회 수: 7 (최근 30일)
이전 댓글 표시
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
채택된 답변
Azzi Abdelmalek
2012년 12월 2일
You can use callback in simulink, fellow thhese steps
댓글 수: 0
추가 답변 (1개)
Mohammad Ali Sharifian
2024년 3월 24일
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
참고 항목
카테고리
Help Center 및 File Exchange에서 Interactive Model Editing에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!