MATLAB Answers

Error using function "drawassisted"

3 views (last 30 days)
xi
xi on 7 Oct 2019
Commented: xi on 11 Oct 2019
I copy and paste the example code below and got errors when testing drawassisted. Any ideas?
im = imread('peppers.png');
imshow(im)
h = drawassisted;
------------------------------------
Dot indexing is not supported for variables of this type.
Error in rescale
Error in images.roi.AssistedFreehand.recomputeAssistance
Error in images.roi.AssistedFreehand.prepareForAssistedFreehand
Error in images.roi.AssistedFreehand/set.Image
Error in images.roi.AssistedFreehand/setAndCheckImage
Error in drawassisted (line 209)
h.setAndCheckImage();

  5 Comments

Show 2 older comments
Siriniharika Katukam
Siriniharika Katukam on 11 Oct 2019
Can I know which update of R2019a you are using?
xi
xi on 11 Oct 2019
version = '9.6.0.1114505 (R2019a) Update 2'
Thanks for looking into this!
xi
xi on 11 Oct 2019
Hi Siriniharika,
Thanks for you time! I find out the reason. There is another "rescale.m" that overrides.
I installed a software written in matlab, which added its own folder to the matlab path, where the new rescale.m belongs too. It overrides!

Sign in to comment.

Answers (0)


Translated by