tf = isstr(x)
| Parameter | Description |
|---|---|
| x | a value, any type. |
| Parameter | Description |
|---|---|
| tf | a logical: true if x is a character array, false otherwise. |
isstr is a deprecated alias for ischar. It returns true when x is a character array and false otherwise.
A string array (created with double quotes) is not a character array, so isstr returns false for it.
isstr is kept for compatibility with legacy code. Use ischar instead in new code.
tf = isstr('hello')
tf = isstr(42)
tf = isstr("hello")
| Version | Description |
|---|---|
| 2.0.0 | initial version |