time | Calls | line |
---|
| | 194 | function valueAttributor( fcn, A, attrName, fname, id, msgId, argname, argpos)
|
| | 195 |
|
< 0.001 | 2 | 196 | try
|
< 0.001 | 2 | 197 | passedValidation = fcn(A);
|
| | 198 | catch e
|
| | 199 | if e.identifier ~= "MATLAB:UndefinedFunction"
|
| | 200 | rethrow(e);
|
| | 201 | end
|
| | 202 | passedValidation = false;
|
< 0.001 | 2 | 203 | end
|
< 0.001 | 2 | 204 | if ~passedValidation
|
| | 205 | argDes = matlab.internal.validators.getArgumentDescriptor( msgId, argname, argpos );
|
| | 206 | attributeDes = getString(message( ['MATLAB:validateattributes:' attrName] ) );
|
| | 207 | error( matlab.internal.validators.generateId( fname, id ), '%s', ...
|
| | 208 | getString(message('MATLAB:validateattributes:expected', argDes, attributeDes)) )
|
< 0.001 | 2 | 209 | end
|
| | 210 |
|
< 0.001 | 2 | 211 | end
|
Other subfunctions in this file are not included in this listing.