Unrecognized function or variable 'addContour'. Why does Matlab not recognize this new function?

Recently introduced in R2020a, the function addContour() is part of the image processing toolbox. As far as I can tell it should be working on my version: R2020b, Image Processing toolbox version 11.2 and recently did the update 3 on MATLAB.
Matlab shows me the input variables when I type " addContour( " in the command window, but then, when I run it as part of a script/function it says that it does not recognize 'addContour' . I am certain that I am inputting the right variables and the right type of variables, but somehow Matlab does not recognize it.
Any one has any thoughts on what is causing this issue?
Error Message
Unrecognized function or variable 'addContour'.
Error in RGtoRSnew (line 23)
new_contour = addContour(new_contour, ROINumber, ROIName, ...

2 Comments

Please post an exact copy of the error message.
Unrecognized function or variable 'addContour'.
Error in RGtoRSnew (line 23)
new_contour = addContour(new_contour, ROINumber, ROIName, ...

Sign in to comment.

Answers (1)

According to the documentation page the first input argument to addContour must be a dicomContours object. Is it? Even if you're sure, please double-check.

Community Treasure Hunt

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

Start Hunting!