I’d like to call functions like imgradientxy or gray2ind in matlab, but either one will cause the error of Undefined function 'imgradientxy' for input arguments of type 'uint8'.
I’m using R2012a version and added toolbox to path.
MATLAB Version: 7.14.0.739 (R2012a)
Mapping Toolbox Version 3.5 (R2012a)
imgradientxy and gray2ind are native functions of matlab. Why is that happening?
The
imgradientandimgradientxyfunctions appear to be new to MATLAB Version R2012b, according to the image processing release notes.I am, however, using R2011a, and I have access to
gray2ind. If you still cannot find that one, typeverto insure you have properly loaded the image processing toolbox.