isstr

Returns true if the input, s, is a string and false otherwise.

Syntax

isstr(s)

Inputs

s
Type: double | integer | char | string | logical | cell | struct | mat

Outputs

R
Resulting output, true if s is a string.
Type: logical

Example

String input.

R = isstr('This is a string.')
R = 1