Documentation Center

  • Trial Software
  • Product Updates

isscalar

Class: categorical

True if categorical array is scalar

The nominal and ordinal array data types might be removed in a future release. To represent ordered and unordered discrete, nonnumeric data, use the MATLAB® categorical data type instead.

Syntax

TF = isscalar(A)

Description

TF = isscalar(A) returns true (1) if the categorical array A is a 1-by-1 matrix, and false (0) otherwise.

See Also

| |

Was this topic helpful?