time | calls | line |
---|
| | 1 | function msg = checkpvpairs(pvpairs,linestyle)
|
| | 2 | %CHECKPVPAIRS Check length of property value pair inputs
|
| | 3 | % MSG = CHECKPVPAIRS(PAIRS) returns an error message if the
|
| | 4 | % length of the supplied cell array of property value pairs is
|
| | 5 | % incorrect. The message is tailored to accepting LINESPEC as an
|
| | 6 | % option convenience input argument.
|
| | 7 |
|
| | 8 | % Copyright 1984-2011 The MathWorks, Inc.
|
| | 9 |
|
| 37 | 10 | msg = '';
|
| 37 | 11 | npvpairs = length(pvpairs)/2;
|
| 37 | 12 | if nargin == 1, linestyle = true; end
|
| 37 | 13 | if (length(pvpairs) == 1) && linestyle
|
| | 14 | msg = message('MATLAB:checkpvpairs:UnrecognizedLineStyleParameter');
|
| 37 | 15 | elseif npvpairs ~= fix(npvpairs)
|
| | 16 | msg = message('MATLAB:checkpvpairs:EvenPropValuePairs');
|
| | 17 | end
|
Other subfunctions in this file are not included in this listing.