string.isstring
string: TF = isstring (str)
Test for string array.
TF is true for string inputs.
Source Code: string
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