ischar
Test whether the input is a character array.
Syntax
Section titled “Syntax”tf = ischar(A)Description
Section titled “Description”Returns true when A is a character array (a string or array of characters), false otherwise.
Examples
Section titled “Examples”ischar('hello') % 1ischar(42) % 0