Subplot with multiple plots for same location
1 次查看(过去 30 天)
显示 更早的评论
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
0 个评论
回答(1 个)
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 Center 和 File Exchange 中查找有关 Subplots 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!