How to draw a line in a series of points

This is image is after I did a centroid plotting. So how can I draw the line through
s = regionprops(Iskel,'centroid');
centroids = cat(1,s.Centroid);
imshow(maskedIbw)
hold on
plot(centroids(:,1),centroids(:,2),'b*')
hold off

 Akzeptierte Antwort

Jaap
Jaap am 16 Jan. 2012

1 Stimme

plot(centroids(:,1),centroids(:,2),'b-')

Weitere Antworten (1)

Kim
Kim am 16 Jan. 2012

0 Stimmen

plot(centroids(:,1),centroids(:,2),'LineWidth',2,'Color','green')

Gefragt:

Kim
am 16 Jan. 2012

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by