This is a static copy of a profile reportHome
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 Name | Function Type | Calls |
framecut | function | 8 |
Lines where the most time was spent
Line Number | Code | Calls | Total Time | % Time | Time Plot |
96 | field = 'receiver'; | 5 | 0.011 s | 100.0% |  |
103 | return; | 8 | 0 s | 0% |  |
98 | field = 'regular'; | 3 | 0 s | 0% |  |
97 | elseif(lind == lnorm) | 3 | 0 s | 0% |  |
95 | elseif(lind == lrec) | 8 | 0 s | 0% |  |
All other lines | | | 0 s | 0% |  |
Totals | | | 0.011 s | 100% | |
Children (called functions)
No childrenCode Analyzer results
Coverage results
[ Show coverage for parent directory ]
Total lines in function | 18 |
Non-code lines (comments, blank lines) | 4 |
Code lines (lines that can run) | 14 |
Code lines that did run | 10 |
Code lines that did not run | 4 |
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.