This is a static copy of a profile reportHome
framecut (9 calls, 2.306 sec)
Generated 05-Aug-2011 13:01:00 using cpu time.
function in file /home/LeechJ/cbass_analysis/reduc/framecut.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 |
38 | d = framecutSub(d, indRx, indS... | 9 | 1.935 s | 83.9% |  |
41 | d = mergestruct(d, buf); | 9 | 0.306 s | 13.3% |  |
32 | [indReg, indServ, indRx] = det... | 9 | 0.044 s | 1.9% |  |
35 | [d buf] = separate_fields(d); | 9 | 0.011 s | 0.5% |  |
25 | field = whichField(d, ind); | 8 | 0.011 s | 0.5% |  |
All other lines | | | 0 s | 0% |  |
Totals | | | 2.306 s | 100% | |
Children (called functions)
Code Analyzer results
Coverage results
[ Show coverage for parent directory ]
Total lines in function | 42 |
Non-code lines (comments, blank lines) | 34 |
Code lines (lines that can run) | 8 |
Code lines that did run | 8 |
Code lines that did not run | 0 |
Coverage (did run/can run) | 100.00 % |
Function listing
time calls line
1 function d = framecut(d,ind, field)
2
3 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
4 %
5 % function d = framecut(d,ind, field)
6 %
7 % cuts the data by frames according to an logical vector (ind)
8 % where 1s are kept and 0s are gotten rid of.
9 %
10 % as we know, some of our data is sampled at different rates,
11 % hence why we have to put the field argument to let us know
12 % which field to be using. basically there are 3 different
13 % sizes, corresponding to the following 'field' values:
14 % 'receiver' is sampled at 100Hz
15 % 'servo' is sampled at 5Hz
16 % 'regular' is sampled at 1Hz
17 %
18 % newer version determines which field to cut over.
19 %
20 % SJCM
21 %
22 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
23
9 24 if(nargin<3)
0.01 8 25 field = whichField(d, ind);
8 26 end
27
28 % we have reshaped things in read_arc.m, so we don't need to worry
29 % about needing to reshape.
30
31 % determine the corresponding inds for each data size
0.04 9 32 [indReg, indServ, indRx] = determineInd(d, ind, field);
33
34 % remove fields that we can't cut
0.01 9 35 [d buf] = separate_fields(d);
36
37 % cut them
1.93 9 38 d = framecutSub(d, indRx, indServ, indReg);
39
40 % add the ones back in
0.31 9 41 d = mergestruct(d, buf);
9 42 return;
Other subfunctions in this file are not included in this listing.