This is a static copy of a profile report

Home

categorical.cellstr (Calls: 278, Time: 0.006 s)
Generated 04-Jun-2021 04:11:26 using performance time.
function in file C:\Program Files\MATLAB\R2020b\toolbox\matlab\datatypes\categorical\@categorical\cellstr.m
Copy to new window for comparing multiple runs

Parents (calling functions)

Function NameFunction TypeCalls
script9script278
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
11
names = [categorical.undefLabe...
2780.003 s47.3%
12
b = reshape(names(a.codes+1),s...
2780.003 s44.3%
All other lines  0.001 s8.4%
Totals  0.006 s100% 
Children (called functions)
No children
Code Analyzer results
No Code Analyzer messages.
Coverage results
Show coverage for parent directory
Total lines in function12
Non-code lines (comments, blank lines)10
Code lines (lines that can run)2
Code lines that did run2
Code lines that did not run0
Coverage (did run/can run)100.00 %
Function listing
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.