Documentation Center

  • Trial Software
  • Product Updates

isvector

Class: categorical

True if categorical array is vector

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 = isvector(A)

Description

TF = isvector(A) returns true (1) if the categorical array A is a 1-by-n or n-by-1 vector, where n >= 0, and false (0) otherwise.

See Also

| |

Was this topic helpful?