Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

Simulink plotting of values

조회 수: 1 (최근 30일)
Navin
Navin 2015년 4월 5일
마감: MATLAB Answer Bot 2021년 8월 20일
Good day everyone, i have a simulink file where i have 2 set of values sent to the workspace, i am able to plot the values in mathlab with the simple command plot(XX,YY),however what i am interested in doing is having the plot show up when the simulink is run for the given values. The values are saved in an array from the scope. Attached is the file where i want to do this, plotting values of (n,FS) and (n,PS). Any help would be greatly appreciated. thank you.

답변 (1개)

Sebastian Castro
Sebastian Castro 2015년 4월 6일
You can use Model Callbacks to run MATLAB code when your simulation is over (and your exported data has been created).
In particular, you want to use the StopFcn callback, as this is the code which is run after simulation ends.
- Sebastian

태그

Community Treasure Hunt

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

Start Hunting!

Translated by