matlab中的子图不规则问题
如何在matlab中绘制如下图? 使用子电压?matlab中的子图不规则问题,matlab,Matlab,如何在matlab中绘制如下图? 使用子电压? 您可以使用带有“Position”参数的子图来实现这一点 subplot('Position',[x,y,width,height]) 在你的例子中 % third row subplot('Position',[0,0,.25,.33]); sphere subplot('Position',[.25,0,.25,.33]); sphere subplot('Position',[.5,0,.25,.33]); sphere subplot('
您可以使用带有“Position”参数的子图来实现这一点
subplot('Position',[x,y,width,height])
在你的例子中
% third row
subplot('Position',[0,0,.25,.33]);
sphere
subplot('Position',[.25,0,.25,.33]);
sphere
subplot('Position',[.5,0,.25,.33]);
sphere
subplot('Position',[.75,0,.25,.33]);
sphere
% second row
subplot('Position',[.125,.33,.25,.33]);
sphere
subplot('Position',[.375,.33,.25,.33]);
sphere
subplot('Position',[.625,.33,.25,.33]);
sphere
% first row
subplot('Position',[.25,.66,.25,.33]);
sphere
subplot('Position',[.5,.66,.25,.33]);
sphere
会导致类似的结果
我想您必须根据绘图以及处理轴标签和所有内容的方式稍微调整实际位置值…您可以使用带有“位置”参数的子绘图来实现这一点
subplot('Position',[x,y,width,height])
在你的例子中
% third row
subplot('Position',[0,0,.25,.33]);
sphere
subplot('Position',[.25,0,.25,.33]);
sphere
subplot('Position',[.5,0,.25,.33]);
sphere
subplot('Position',[.75,0,.25,.33]);
sphere
% second row
subplot('Position',[.125,.33,.25,.33]);
sphere
subplot('Position',[.375,.33,.25,.33]);
sphere
subplot('Position',[.625,.33,.25,.33]);
sphere
% first row
subplot('Position',[.25,.66,.25,.33]);
sphere
subplot('Position',[.5,.66,.25,.33]);
sphere
会导致类似的结果
我想您必须根据您的绘图以及如何处理轴标签和所有内容稍微调整实际位置值…您在这里到底在绘制什么?您在这里到底在绘制什么?