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

 채택된 답변

Azzi Abdelmalek
Azzi Abdelmalek 2012년 12월 2일

4 개 추천

You can use callback in simulink, fellow thhese steps
  1. right click on your simulink model
  2. click on model properties
  3. click on callbacks
  4. click on stop fcn
  5. type your m filename

추가 답변 (1개)

Mohammad Ali Sharifian
Mohammad Ali Sharifian 2024년 3월 24일

0 개 추천

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.

카테고리

도움말 센터File Exchange에서 Interactive Model Editing에 대해 자세히 알아보기

질문:

Pat
2012년 12월 2일

답변:

2024년 3월 24일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by