This is a static copy of a profile reportHome
tformarray>ConstructGrid (1721 calls, 2.323 sec)
Generated 05-Nov-2014 07:53:16 using cpu time.
subfunction in file /usr1/opt/matlab/7.13/toolbox/images/images/tformarray.m
Copy to new window for comparing multiple runs
Parents (calling functions)
Function Name | Function Type | Calls |
tformarray | function | 1721 |
Lines where the most time was spent
Line Number | Code | Calls | Total Time | % Time | Time Plot |
290 | G = CombinedGrid(E{:}); | 1721 | 2.243 s | 96.6% |  |
286 | E = cell(1,N); | 1721 | 0.020 s | 0.9% |  |
285 | N = length(hi); | 1721 | 0.020 s | 0.9% |  |
288 | E{i} = lo(i):hi(i); % The sub... | 3442 | 0.010 s | 0.4% |  |
287 | for i = 1:N; | 1721 | 0.010 s | 0.4% |  |
All other lines | | | 0.020 s | 0.9% |  |
Totals | | | 2.323 s | 100% | |
Children (called functions)
Function Name | Function Type | Calls | Total Time | % Time | Time Plot |
tformarray>CombinedGrid | subfunction | 1721 | 2.223 s | 95.7% |  |
Self time (built-ins, overhead, etc.) | | | 0.100 s | 4.3% |  |
Totals | | | 2.323 s | 100% | |
Code Analyzer results
No Code Analyzer messages.Coverage results
[ Show coverage for parent directory ]
Total lines in function | 13 |
Non-code lines (comments, blank lines) | 7 |
Code lines (lines that can run) | 6 |
Code lines that did run | 6 |
Code lines that did not run | 0 |
Coverage (did run/can run) | 100.00 % |
Function listing
time calls line
278 function G = ConstructGrid( lo, hi )
279
280 % Constructs a regular grid from the range of subscripts defined by
281 % vectors LO and HI, and packs the result into a single array, G.
282 % G is D(1) x D(2) x ... x D(N) x N where D(k) is the length of
283 % lo(k):hi(k) and N is the length of LO and HI.
284
0.02 1721 285 N = length(hi);
0.02 1721 286 E = cell(1,N);
0.01 1721 287 for i = 1:N;
0.01 3442 288 E{i} = lo(i):hi(i); % The subscript range for each dimension
3442 289 end
2.24 1721 290 G = CombinedGrid(E{:});
Other subfunctions in this file are not included in this listing.