Error using function "drawassisted"

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 个评论

Hi
I am assuming that you are running the example code. Running the three lines of code that you mentioned yields me the right output causing no errors.
Yes, just running these three lines.
I tried on a different computer with 2018b installed, no errors.
But on my computer, with 2019a installed, always showing this same error, even after restarting matlab, although the cause might not be due to versions. I don't know.
Can I know which update of R2019a you are using?
version = '9.6.0.1114505 (R2019a) Update 2'
Thanks for looking into this!
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!

请先登录,再进行评论。

回答(0 个)

提问:

xi
2019-10-7

评论:

xi
2019-10-11

Community Treasure Hunt

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

Start Hunting!

Translated by