time | Calls | line |
---|
| | 1 | function mustBeValidGraphicsObject(input, cls)
|
| | 2 | % mustBeValidGraphicsObject is for internal use only and may be removed or
|
| | 3 | % modified at any time
|
| | 4 |
|
| | 5 | % mustBeValidGraphicsObject(input, class) issues an error if input is not
|
| | 6 | % an empty double, a valid graphics handle or the specified input class
|
| | 7 | %
|
| | 8 |
|
| | 9 | % Copyright 2019 The MathWorks, Inc.
|
< 0.001 | 10 | 10 | out = is_valid_graphics_property(input, cls);
|
< 0.001 | 10 | 11 | if ~out
|
| | 12 | throwAsCaller(MException('MATLAB:type:PropSetClsMismatch','%s',message('MATLAB:type:PropSetClsMismatch',cls).getString));
|
< 0.001 | 10 | 13 | end
|
< 0.001 | 10 | 14 | end
|