Skip to Main Content Skip to Search
Product Documentation

char - Class: categorical

Convert categorical array to character array

Syntax

B = char(A)

Description

B = char(A) converts the categorical array A to a 2-D character matrix. char does not preserve the shape of A. B contains numel(A) rows, and each row of B contains the categorical level label for the corresponding element of A(:).

See Also

cellstr | getlabels

  


 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS