r = isStringScalar(str)
| Parameter | Description |
|---|---|
| str | a string, string array or cell of strings. |
| Parameter | Description |
|---|---|
| r | a logical, true if res is string type and scalar. |
isStringScalar checks if input is string array with one element.
r = isStringScalar('hello')
r = isStringScalar("hello")
r = isStringScalar(["hello", "world"])
| Version | Description |
|---|---|
| 1.0.0 | initial version |