How to draw a line in a series of points

조회 수: 1 (최근 30일)
Kim
Kim 2012년 1월 16일
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일
plot(centroids(:,1),centroids(:,2),'b-')

추가 답변 (1개)

Kim
Kim 2012년 1월 16일
plot(centroids(:,1),centroids(:,2),'LineWidth',2,'Color','green')

카테고리

Help CenterFile Exchange에서 Visual Exploration에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by