This is a static copy of a profile reportHome
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)
Lines where the most time was spent
Line Number | Code | Calls | Total Time | % Time | Time Plot |
674 | if ~all(operation(out(:,cols))... | 8 | 0.011 s | 100.0% |  |
687 | if rows < size(out,1) || co... | 8 | 0 s | 0% |  |
683 | break; | 8 | 0 s | 0% |  |
682 | if ~all(operation(out(rows,1:c... | 8 | 0 s | 0% |  |
681 | while rows >= 1 | 8 | 0 s | 0% |  |
All other lines | | | 0 s | 0% |  |
Totals | | | 0.011 s | 100% | |
Children (called functions)
Code Analyzer results
Coverage results
[ Show coverage for parent directory ]
Total lines in function | 20 |
Non-code lines (comments, blank lines) | 3 |
Code lines (lines that can run) | 17 |
Code lines that did run | 9 |
Code lines that did not run | 8 |
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.