MATLAB: How to calcuate the distance from two selected points

ginput

Is there a simple way (a command) to be able to identify in a grafical way the distance beetween two points on a figure? If I have a figure with some points I wonder if There is a way that allow you to have in ouput the distance between the two selected points? For example a sort of ginput command. Have you got an idea?

Best Answer