How can i plot f(i),g(i),h(i) in one figure(i)?

조회 수: 1 (최근 30일)
MA
MA 2014년 6월 7일
댓글: Star Strider 2014년 6월 7일
I want to plot each three diagrams in one figure

채택된 답변

Star Strider
Star Strider 2014년 6월 7일
Use the subplot function.
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
MA
MA 2014년 6월 7일
thank you so much
Star Strider
Star Strider 2014년 6월 7일
My pleasure!

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 2-D and 3-D Plots에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by