0
我想绘制多个圆心,以中心为先前已确定的质心。绘制多个圆圈
所以我有这个代码使用质心作为圆心,但我得到的错误:“错误使用+矩阵尺寸必须同意。”
r = 4;
cen_x = centroid(:,1);
cen_y = centroid(:,2);
th = 0:pi/50:2*pi;
xunit = r * cos(th) + cen_x;
yunit = r * sin(th) + cen_y;
hold on
h = plot(xunit, yunit);
任何帮助?
很好地完成。我很好奇你是否可以使用'imfill'函数来填充这些圆圈? – Idrawthings
非常感谢! – Idrawthings