Drawing multiple (10) subplots in the same figure

조회 수: 5 (최근 30일)
Khan Engr
Khan Engr 2019년 2월 11일
편집: DAIJIRY NARZARY 2021년 8월 11일
Hi everyone,
I want to present 10 subplots in the same figure, in two columns (means 5 rows). For example if the plots a are;
plot (t, S1), plot (t, S2), plot (t,S3), .... plot(t, S10),
how to 'set' the position of the specific plots in certain subplot so that I know which plot is at which location.
Thanks
  댓글 수: 1
DAIJIRY NARZARY
DAIJIRY NARZARY 2021년 8월 11일
편집: DAIJIRY NARZARY 2021년 8월 11일
Hi,
Its very simple and easy. You can use subplot (2,5,1);subplot(2,5,2)........(2,5,10). You will get the complete graph in 2 rows and 5 columns. Hope it helps.

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

채택된 답변

Star Strider
Star Strider 2019년 2월 11일
The subplot function fills the subplot positions by row, so that the second subplot (subplot(5,2,2)) is the second subpot in the first row, the first subplot in the second row is subplot(5,2,3), and so for the rest. Just number them accordingly to put them where you want them.
  댓글 수: 5
Khan Engr
Khan Engr 2019년 2월 12일
Thanks a lot again for guiding, the issue is sloved.
Star Strider
Star Strider 2019년 2월 12일
As always, my pleasure.

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Subplots에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by