Subplot with multiple plots for same location

조회 수: 2 (최근 30일)
Umit
Umit 2012년 8월 12일
I have a figure that is 3 by 5 plots in it where plot locations [3 4 8 9] are one plot that is generated by same function. I use following code;
hold on
subplot(3,5,[3 4 8 9]);
PlotFunc1();
PlotFunc2();
PlotFunc3();
all PlotFunc1,2,3() are my own functions where 3 of them generates the figure I need for [3 4 8 9], I cannot generate one function to generate the figure, so how can I use 3 different functions to generate a figure and plot it as one figure for location [3 4 8 9].
Thanks

답변 (1개)

Image Analyst
Image Analyst 2012년 8월 13일
You can't do that because 8 and 9 aren't underneath 2 and 3. Look:
1 2 3 4 5 6
7 8 9 10 11 12
13 14 15 16 17 18
You can put a big plot covering 3, 4, 9, and 10, because they are in a big square, or you can do 2, 3, 8 and 9. But you can't do 3,4 and 8,9 because 8,9 aren't underneath 3 and 4.

카테고리

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