MATLAB: Error with Measure Distances in an Image

distancedocumentationerrorguiimageimages.roi.lineline roimeasure distances

Hi!
I was using the code presenting in this documentation https://www.mathworks.com/help/images/measure-distances-in-images.html and I get an error in the first line of the startDrawing function. The error is: Undefined variable "images" or class "images.roi.Line".
Why this is happening?
Thanks!

Best Answer

images.roi.Line needs at least R2018b I believe.
Related Question