Sim*_*mon 5 matlab plot tablelayout subplot matlab-figure
是否有可能建立一个绘图窗口,其中8个绘图数字按以下方式处理?
我不能使用subplot功能,因为对于我将拥有的第6拳,我将拥有subplot(2, 3, x)
最后2 subplot(1, 2, x)
.
abc*_*bcd 11
subplot
命令的最后一个输入不必是整数,并且需要十进制偏移量.您可以使用它来创建所需的绘图,其中两个最低的绘图位于上面一行的下方,所有图形的大小与以下示例中的大小相同.
figure(1)
subplot(3,3,1)
subplot(3,3,2)
subplot(3,3,3)
subplot(3,3,4)
subplot(3,3,5)
subplot(3,3,6)
subplot(3,3,7.5)
subplot(3,3,8.5)
Run Code Online (Sandbox Code Playgroud)
这是一个例子:
figure
subplot(3,3,1), text(0.5,0.5,'1', 'FontSize',20)
subplot(3,3,2), text(0.5,0.5,'2', 'FontSize',20)
subplot(3,3,3), text(0.5,0.5,'3', 'FontSize',20)
subplot(3,3,4), text(0.5,0.5,'4', 'FontSize',20)
subplot(3,3,5), text(0.5,0.5,'5', 'FontSize',20)
subplot(3,3,6), text(0.5,0.5,'6', 'FontSize',20)
subplot(3,2,5), text(0.5,0.5,'7', 'FontSize',20)
subplot(3,2,6), text(0.5,0.5,'8', 'FontSize',20)
Run Code Online (Sandbox Code Playgroud)