This is a static copy of a profile reportHome
framecut>determineInd (9 calls, 0.044 sec)
Generated 05-Aug-2011 13:00:35 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 | 9 |
Lines where the most time was spent
Line Number | Code | Calls | Total Time | % Time | Time Plot |
139 | indServ = mean(indServ)~=0; | 5 | 0.011 s | 25.0% |  |
135 | indReg = mean(indReg)~=0; | 5 | 0.011 s | 25.0% |  |
116 | indRx = repmat(indReg, [1 10... | 4 | 0.011 s | 25.0% |  |
112 | indServ = repmat(indReg, [1 5]... | 4 | 0.011 s | 25.0% |  |
144 | return; | 9 | 0 s | 0% |  |
All other lines | | | 0 s | 0% |  |
Totals | | | 0.044 s | 100% | |
Children (called functions)
Function Name | Function Type | Calls | Total Time | % Time | Time Plot |
repmat | function | 8 | 0.022 s | 50.0% |  |
mean | function | 10 | 0.011 s | 25.0% |  |
Self time (built-ins, overhead, etc.) | | | 0.011 s | 25.0% |  |
Totals | | | 0.044 s | 100% | |
Code Analyzer results
Line number | Message |
106 | Input argument 'd' might be unused, although a later one is used. Consider replacing it by ~. |
Coverage results
[ Show coverage for parent directory ]
Total lines in function | 39 |
Non-code lines (comments, blank lines) | 12 |
Code lines (lines that can run) | 27 |
Code lines that did run | 20 |
Code lines that did not run | 7 |
Coverage (did run/can run) | 74.07 % |
Function listing
time calls line
106 function [indReg, indServ, indRx] = determineInd(d, ind, field)
107
9 108 switch(field)
9 109 case 'regular'
4 110 indReg = ind;
111
0.01 4 112 indServ = repmat(indReg, [1 5]);
4 113 indServ = indServ';
4 114 indServ = indServ(:);
115
0.01 4 116 indRx = repmat(indReg, [1 100]);
4 117 indRx = indRx';
4 118 indRx = indRx(:);
119
5 120 case 'servo'
121 indServ = ind;
122
123 indReg = reshape(indServ, [5 length(indServ)/5]);
124 indReg = mean(indReg)~=0;
125 indReg = indReg';
126
127 indRx = repmat(indServ, [1 20]);
128 indRx = indRx';
129 indRx = indRx(:);
130
5 131 case 'receiver'
5 132 indRx = ind;
133
5 134 indReg = reshape(indRx, [100 length(indRx)/100]);
0.01 5 135 indReg = mean(indReg)~=0;
5 136 indReg = indReg';
137
5 138 indServ = reshape(indRx, [20 length(indRx)/20]);
0.01 5 139 indServ = mean(indServ)~=0;
5 140 indServ = indServ';
141
5 142 end
143
9 144 return;
Other subfunctions in this file are not included in this listing.