ISCHAR Test For Character Array (string)

Section: Array Generation and Manipulations

Usage

The syntax for ischar is
   x = ischar(y)

and it returns a logical 1 if the argument is a string and a logical 0 otherwise.