time | Calls | line |
---|
| | 1 | function b = cellstr(a)
|
| | 2 | %CELLSTR Convert categorical array to cell array of character vectors.
|
| | 3 | % B = CELLSTR(A) converts the categorical array A to a cell array of
|
| | 4 | % character vectors. Each element of B contains the category name for the
|
| | 5 | % corresponding element of A.
|
| | 6 | %
|
| | 7 | % See also CHAR, CATEGORIES, STRING.
|
| | 8 |
|
| | 9 | % Copyright 2006-2013 The MathWorks, Inc.
|
| | 10 |
|
0.003 | 278 | 11 | names = [categorical.undefLabel; a.categoryNames];
|
0.003 | 278 | 12 | b = reshape(names(a.codes+1),size(a.codes));
|
Other subfunctions in this file are not included in this listing.