MATLAB: How can i plot multiple circles

circlesmultiplewithin polygon

am trying to plot multiple circles within polygon. i know the center point(vector p and q coordinates of centers) of each circle. am trying the following code but getting only one circle in plot as shown in the figure.
p=[50 68 12 45];
q=[59 90 16 74];
for i=1:length(p)
xunit=xp + p(i)
yunit=yp + q(i)
end
plot(xunit, yunit, 'b')

Best Answer

figure
hold on
for i=1:length(p)
xunit=xp + p(i)
yunit=yp + q(i)
plot(xunit, yunit, 'Ob')
end