tf = isprotected(A)
| Parameter | Description |
|---|---|
| A | Input value. |
| Parameter | Description |
|---|---|
| tf | Logical scalar that is true for protected categorical arrays. |
isprotected reports whether a categorical array prevents implicit category expansion during assignment.
Ordinal categorical arrays are protected automatically.
A = categorical({'low','high'}, {'low','high'}, 'Protected', true); tf = isprotected(A)
| Version | Description |
|---|---|
| 2.0.0 | initial version |