Connecting point in Matlab

8 Ansichten (letzte 30 Tage)
Zo
Zo am 12 Mär. 2019
Kommentiert: Zo am 17 Mär. 2019
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 Kommentar
Zo
Zo am 17 Mär. 2019
Good evening,
After i connected the points, how would i find the angle between the lines?
Thank you

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

KSSV
KSSV am 12 Mär. 2019
Bearbeitet: KSSV am 12 Mär. 2019
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 Kommentar
Zo
Zo am 12 Mär. 2019
that you very much I didn't understand before! thank you!

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Data Exploration finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by