Method Reference: string.isstring

string: TF = isstring (str)

Test for string array.

TF is true for string inputs.

Source Code: string

Example: 1

isstring returns true only for string arrays — the reliable way to tell a string from a character vector, which (see string) look alike in source.

 isstring (string ('text'))
ans = 1
 isstring ('text')
ans = 0
 isstring ("text")
ans = 0