ISCHAR Test For Character Array (string)

Section: Inspection Functions

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.