MATLAB: What’s the function of validateattributes’s argument FUNCNAME and VARNAME

validateattributes funcname varname

FUNCNAME String that specifies the function name.
VARNAME String that specifies input argument name.
what's the "the function name" and "input argument name" means?

Best Answer

So if the arguments are being processed by a routine named "checkme", then instead of the message
Error using checkme (line 3)
Expected input to be positive.
you can have it say
Error using FUNCNAME (line 3)
Expected input, VARNAME, to be positive.
Related Question