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

I want to show the line that conects two points (the minimun distance between them) in an image.
How can I do it?
Thanks!

Antworten (1)

Agnish Dutta
Agnish Dutta am 18 Mär. 2019

0 Stimmen

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:

Kategorien

Mehr zu 2-D and 3-D Plots finden Sie in Hilfe-Center und File Exchange

Tags

Gefragt:

am 6 Mär. 2019

Beantwortet:

am 18 Mär. 2019

Community Treasure Hunt

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

Start Hunting!

Translated by