X axis problem while plotting from simulink

Hello
I'm trying to plot signal from simulink using To Workspace block and plot command. My simulation runs for 1.4 seconds but with plot option it looks like 10000 seconds and that's whats bothering me.

답변 (1개)

Birdman
Birdman 2017년 10월 21일

0 개 추천

If you want to plot sine wave in MATLAB, consider the following situation:
Look at time image.png. Firstly, you have to save the simout variable as Structure with time. Then in the workspace, use the following command:
plot(simout.time,simout.signals.values(:,1))
Hope this helps.

카테고리

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

질문:

2017년 10월 21일

답변:

2017년 10월 21일

Community Treasure Hunt

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

Start Hunting!

Translated by