How can i plot f(i),g(i),h(i) in one figure(i)?
조회 수: 1 (최근 30일)
이전 댓글 표시
I want to plot each three diagrams in one figure
댓글 수: 0
채택된 답변
Star Strider
2014년 6월 7일
Your loop becomes:
figure(1)
for i = 1:3
subplot(3,1,i)
. . .
plot(x,f(i),'-b', ... )
. . .
end
to get 3 stacked plots in one figure. Other configurations are possible. See the documentation on subplot for details.
댓글 수: 6
추가 답변 (0개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!