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