This is a static copy of a profile report

Home

framecut>whichField (8 calls, 0.011 sec)
Generated 05-Aug-2011 13:01:03 using cpu time.
subfunction in file /home/LeechJ/cbass_analysis/reduc/framecut.m
Copy to new window for comparing multiple runs

Parents (calling functions)

Function NameFunction TypeCalls
framecutfunction8
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
96
field = 'receiver';
50.011 s100.0%
103
return;
80 s0%
98
field = 'regular';
30 s0%
97
elseif(lind == lnorm)
30 s0%
95
elseif(lind == lrec)
80 s0%
All other lines  0 s0%
Totals  0.011 s100% 
Children (called functions)
No children
Code Analyzer results
Line numberMessage
Coverage results
[ Show coverage for parent directory ]
Total lines in function18
Non-code lines (comments, blank lines)4
Code lines (lines that can run)14
Code lines that did run10
Code lines that did not run4
Coverage (did run/can run)71.43 %
Function listing
   time   calls  line
86 function field = whichField(d, ind)
87
8 88 lind = length(ind);
8 89 lserv = length(d.antenna0.servo.utc);
8 90 lrec = length(d.antenna0.receiver.utc);
8 91 lnorm = length(d.array.frame.utc);
92
8 93 if(lind == lserv)
94 field = 'servo';
8 95 elseif(lind == lrec)
0.01 5 96 field = 'receiver';
3 97 elseif(lind == lnorm)
3 98 field = 'regular';
99 else
100 error('Vector over which to cut does not match dimensions in data');
101 end
102
8 103 return;

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