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