This is a static copy of a profile report

Home

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 NameFunction TypeCalls
tformarrayfunction1721
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
290
G = CombinedGrid(E{:});
17212.243 s96.6%
286
E = cell(1,N);
17210.020 s0.9%
285
N = length(hi);
17210.020 s0.9%
288
E{i} = lo(i):hi(i);  % The sub...
34420.010 s0.4%
287
for i = 1:N;
17210.010 s0.4%
All other lines  0.020 s0.9%
Totals  2.323 s100% 
Children (called functions)

Function NameFunction TypeCallsTotal Time% TimeTime Plot
tformarray>CombinedGridsubfunction17212.223 s95.7%
Self time (built-ins, overhead, etc.)  0.100 s4.3%
Totals  2.323 s100% 
Code Analyzer results
No Code Analyzer messages.
Coverage results
[ Show coverage for parent directory ]
Total lines in function13
Non-code lines (comments, blank lines)7
Code lines (lines that can run)6
Code lines that did run6
Code lines that did not run0
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.