Return distance between endpoints of Distance tool
getDistance is not recommended. Use one of the ROI classes instead,
described in Create ROI Shapes.
dist — Distance between endpoints
Distance between endpoints, returned as a numeric scalar. The data units
of the distance are determined by the
YData properties of the underlying image. By default,
the distance is measured in pixels.
Introduced before R2006a