plot simulink in matlab
조회 수: 2 (최근 30일)
이전 댓글 표시
i have generated simulink figure and can convert it in matlab using plot(signal) . now if i want to take the graph between a time limit such as 0.2s t0 0.5s, which command should i write?
댓글 수: 0
답변 (2개)
Andreas Goser
2013년 2월 5일
There is actually no other command needed than PLOT. You only have to plot different DATA. Example:
t=0:0.001:1; % ms
data=sin(10*t); % example data
plot(t,data) % full plot
figure
plot(t(11:51),data(11:51)) % from 0.01 s to 0.05 s
댓글 수: 0
참고 항목
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!