iscategorical - Determine if input is categorical array - MATLAB (original) (raw)

Main Content

Determine if input is categorical array

Syntax

Description

tf = iscategorical([A](#bt0y364-1-A)) returns logical1 (true) if the input is a categorical array. Otherwise, iscategorical returns logical0 (false).

example

Examples

collapse all

Create an array.

A = categorical(["red" "green" "violet"; "orange" "red" "yellow"])

A = 2×3 categorical red green violet orange red yellow

Determine if the array is a categorical array.

Input Arguments

Extended Capabilities

expand all

Thread-Based Environment

Run code in the background using MATLAB® backgroundPool or accelerate code with Parallel Computing Toolbox™ ThreadPool.

Version History

Introduced in R2013b