This is a static copy of a profile report

Home

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

Parents (calling functions)

Function NameFunction TypeCalls
...ategorical>categorical.categoricalclass method2
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
819
end
20.000 s0.5%
813
if any(t)
20.000 s0.2%
818
end
20.000 s0.1%
All other lines  0.000 s99.2%
Totals  0.000 s100% 
Children (called functions)
No children
Code Analyzer results
No Code Analyzer messages.
Coverage results
Show coverage for parent directory
Total lines in function11
Non-code lines (comments, blank lines)4
Code lines (lines that can run)7
Code lines that did run3
Code lines that did not run4
Coverage (did run/can run)42.86 %
Function listing
time 
Calls 
 line
 809 
function [c,ic] = removeUtil(c,ic,t)
 810 
% Remove elements from c, and update ic's indices into c -- zero out the ones
 811 
% that point to elements being removed from c, and shift down the remaining
 812 
% ones to point into the reduced version of c
< 0.001 
      2 
 813
if any(t) 
 814 
    q = find(~t);
 815 
    convert = zeros(size(c)); convert(q) = 1:length(q);
 816 
    ic = convert(ic);
 817 
    c = c(q);
< 0.001 
      2 
 818
end 
< 0.001 
      2 
 819
end 

Other subfunctions in this file are not included in this listing.