Determine whether categories of categorical array are protected
tf = isprotected(
returns
logical A
)1
(true
) if the categories
of A
are protected. Otherwise, isprotected
returns
logical 0
(false
).
true
— When you assign new
values to B
, the values must belong to one of the
existing categories. Therefore, you only can combine arrays that have
the same categories. To add new categories to B
,
you must use the addcats
function.
false
— When you assign
new values to B
, the categories update automatically.
Therefore, you can combine (nonordinal) categorical arrays that have
different categories. The categories can update to include the categories
from both arrays.