convertCharsToStrings
Convert character arrays to a string arrays, where applicable.
B = convertCharsToStrings (A)
converts A to a string
scalar, if A is a character vector or array, or to a string array, if
A is a cell array of character vectors. Otherwise, A is returned
unaltered.
[B1, …, Bn] = convertCharsToStrings (A1,
…, An)
converts any of the input arguments that are either
character arrays or cell arrays of character vectors to string scalars or
string arrays, respectively. Otherwise, convertCharsToStrings
returns
the input arguments unaltered.
See also: convertStringsToChars, string
Source Code: convertCharsToStrings