Connecting point in Matlab

조회 수: 2 (최근 30일)
Zo
Zo 2019년 3월 12일
댓글: Zo 2019년 3월 17일
Good evening,
after i ran this program, and selected these three points from the image, how do i connect them? As seen in image.
imshow (I)
uiwait(msgbox('Idenitfy three points on the leaflets that indicate the begining of a leaflet, a point where the leaflets meet and the end of the other leaflet. Press Enter when finished.'));
mousePointCoords = ginput;
% plot the mouse point coordinates on the figure
plot(mousePointCoords(:,1), mousePointCoords(:,2),'b.','MarkerSize',8);
  댓글 수: 1
Zo
Zo 2019년 3월 17일
Good evening,
After i connected the points, how would i find the angle between the lines?
Thank you

댓글을 달려면 로그인하십시오.

채택된 답변

KSSV
KSSV 2019년 3월 12일
편집: KSSV 2019년 3월 12일
imshow (I)
hold on
uiwait(msgbox('Idenitfy three points on the leaflets that indicate the begining of a leaflet, a point where the leaflets meet and the end of the other leaflet. Press Enter when finished.'));
mousePointCoords = ginput(3);
% plot the mouse point coordinates on the figure
plot(mousePointCoords(:,1), mousePointCoords(:,2),'b.','MarkerSize',8);
plot(mousePointCoords(:,1), mousePointCoords(:,2),'b','LineWidth',3);
Read about plot..already you are plotting using markers...change the markers to line thats it.
  댓글 수: 1
Zo
Zo 2019년 3월 12일
that you very much I didn't understand before! thank you!

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by