plotting two different graphs
조회 수: 73 (최근 30일)
이전 댓글 표시
im using plot to graph one curve but now i need to plot a second curve on a different graph so how can i open 2 graphs from one script
댓글 수: 0
채택된 답변
Srinivas
2012년 5월 13일
help figure
is this what you want
댓글 수: 4
Walter Roberson
2020년 6월 14일
Either use subplot like Image Analyst said, or use "hold on" after drawing the first graph so that the second graph goes into the same axes.
추가 답변 (1개)
Image Analyst
2012년 5월 13일
Try subplot(). This will let you have two plots on the same figure so you can see them both at the same time and don't have to keep switching between figures.
subplot(1, 2, 1);
plot(1:30);
subplot(1, 2, 2);
plot(200:247);
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Legend에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!