time | Calls | line |
---|
| | 1 | function out = isCharOrString(args)
|
| | 2 | % This undocumented function may be removed in a future release.
|
| | 3 |
|
| | 4 | % isCharOrString - Determines whether an input is a character vector or a MATLAB
|
| | 5 | % string scalar.
|
| | 6 | % isCharOrString(s) Returns 1 if S is a character vector or a string.
|
| | 7 | % Returns 1 for empty character vector and empty string.
|
| | 8 | % Returns 0 for ['Hello'; 'JellO'; 'Moose'], as it is a
|
| | 9 | % 2-D input.
|
| | 10 | % Returns 0 for ["Hello", "Hello", "Moose"], as it is a
|
| | 11 | % string vector.
|
| | 12 | %
|
| | 13 | % Copyright 2017-2019 MathWorks, Inc.
|
| | 14 |
|
< 0.001 | 70 | 15 | out = (ischar(args) && (isvector(args)|| isempty(args))) || (isstring(args) && isscalar(args));
|
< 0.001 | 70 | 16 | end
|
Other subfunctions in this file are not included in this listing.