How do I plot a line showing the distance between two points?

조회 수: 8 (최근 30일)
María Peñas Leonor
María Peñas Leonor 2019년 3월 6일
답변: Agnish Dutta 2019년 3월 18일
I want to show the line that conects two points (the minimun distance between them) in an image.
How can I do it?
Thanks!
  댓글 수: 1
KSSV
KSSV 2019년 3월 6일
If you have to points in hand use plot...simple isn't it?

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

답변 (1개)

Agnish Dutta
Agnish Dutta 2019년 3월 18일
You can use the 'line' function to plot lines on existing axes. Refer to the following document for the same:
For further reference, you can use this ML answers page with a verified respose:

카테고리

Help CenterFile Exchange에서 Line Plots에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by