isprotected
Test whether the categorical array’s category set is protected.
Syntax
Section titled “Syntax”tf = isprotected(A)Description
Section titled “Description”Returns true if A was created with 'Protected', true (new categories cannot be added by assignment), false otherwise.
Example
Section titled “Example”isprotected(categorical({'a','b'})) % 0See also
Section titled “See also”categorical— Create a categorical array from data.isordinal— Test whether the categorical array is ordinal.