time | Calls | line |
---|
| | 44 | function obj = set.Name(obj,rhs)
|
< 0.001 | 30 | 45 | rhs = convertCharsToStrings(rhs);
|
< 0.001 | 30 | 46 | if ~(isstring(rhs) && isscalar(rhs))
|
| | 47 | error(message('MATLAB:textio:textio:InvalidStringProperty','Name'));
|
< 0.001 | 30 | 48 | end
|
| | 49 |
|
| | 50 | % Make sure that the Variable Options name is non-empty and
|
| | 51 | % not greater than namelengthmax.
|
< 0.001 | 30 | 52 | stringLength = strlength(rhs);
|
< 0.001 | 30 | 53 | if stringLength == 0 || stringLength > namelengthmax
|
| | 54 | error(message('MATLAB:table:VariableNameNotValidIdentifier', rhs));
|
< 0.001 | 30 | 55 | end
|
| | 56 |
|
< 0.001 | 30 | 57 | obj.Name_ = char(rhs);
|
< 0.001 | 30 | 58 | end
|
Other subfunctions in this file are not included in this listing.