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

 채택된 답변

Jaap
Jaap 2012년 1월 16일

1 개 추천

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

추가 답변 (1개)

Kim
Kim 2012년 1월 16일

0 개 추천

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

카테고리

도움말 센터File Exchange에서 Annotations에 대해 자세히 알아보기

질문:

Kim
2012년 1월 16일

Community Treasure Hunt

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

Start Hunting!

Translated by