subplot code in matlab
조회 수: 2 (최근 30일)
이전 댓글 표시
What is subplot code to make 3 graphs show like
X X X
where X is graph
thank you
댓글 수: 0
채택된 답변
John D'Errico
2019년 12월 29일
This should be in the help for subplot. You want to create a 1x3 array of subplots.
subplot(1,3,1)
plot(rand(5),'.')
subplot(1,3,2)
plot(rand(5),'.')
subplot(1,3,3)
plot(rand(5),'.')
Of course, you could use a loop too, but the above is the simplest form.
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Subplots에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!