This is a static copy of a profile report

Home

importdata>TrimTrailing (8 calls, 0.011 sec)
Generated 05-Aug-2011 13:01:25 using cpu time.
subfunction in file /usr/local/MATLAB/R2011a/toolbox/matlab/iofun/importdata.m
Copy to new window for comparing multiple runs

Parents (calling functions)

Function NameFunction TypeCalls
importdata>parsesubfunction8
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
674
if ~all(operation(out(:,cols))...
80.011 s100.0%
687
if rows < size(out,1) || co...
80 s0%
683
break;
80 s0%
682
if ~all(operation(out(rows,1:c...
80 s0%
681
while rows >= 1
80 s0%
All other lines  0 s0%
Totals  0.011 s100% 
Children (called functions)

Function NameFunction TypeCallsTotal Time% TimeTime Plot
importdata>@(x)(isnan(x))anonymous function80 s0%
importdata>@(x)cellfun('isempty',x)anonymous function80 s0%
Self time (built-ins, overhead, etc.)  0.011 s100.0%
Totals  0.011 s100% 
Code Analyzer results
Line numberMessage
Coverage results
[ Show coverage for parent directory ]
Total lines in function20
Non-code lines (comments, blank lines)3
Code lines (lines that can run)17
Code lines that did run9
Code lines that did not run8
Coverage (did run/can run)52.94 %
Function listing
   time   calls  line
670 function out = TrimTrailing(operation, out)
671 % Trim trailing that use a certain operation
8 672 cols = size(out,2);
8 673 while cols >= 1
0.01 8 674 if ~all(operation(out(:,cols)))
8 675 break;
676 end
677 cols = cols - 1;
678 end
679 % trim trailing empty rows from textData
8 680 rows = size(out,1);
8 681 while rows >= 1
8 682 if ~all(operation(out(rows,1:cols)))
8 683 break;
684 end
685 rows = rows - 1;
686 end
8 687 if rows < size(out,1) || cols < size(out,2)
688 out = out(1:rows,1:cols);
689 end

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