This is a static copy of a profile report

Home

tformarray>CheckFillArray (1721 calls, 0.200 sec)
Generated 05-Nov-2014 07:53:15 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
707
size_F = [size_F ones(1,N-leng...
17210.030 s15.0%
698
size_F = size(F);
17210.030 s15.0%
712
if ~q
17210.020 s10.0%
711
end
17210.020 s10.0%
699
last = max([1 find(size_F ~= 1...
17210.020 s10.0%
All other lines  0.080 s40.0%
Totals  0.200 s100% 
Children (called functions)
No children
Code Analyzer results
No Code Analyzer messages.
Coverage results
[ Show coverage for parent directory ]
Total lines in function28
Non-code lines (comments, blank lines)9
Code lines (lines that can run)19
Code lines that did run14
Code lines that did not run5
Coverage (did run/can run)73.68 %
Function listing
   time   calls  line
688 function F = CheckFillArray( F, osize )
689
1721 690 if isempty(F)
691 F = 0;
1721 692 else
0.01 1721 693 if ~isa(F,'double') || issparse(F)
694 error(message('images:tformarray:invalidF'));
695 end
696
697 % Validate SIZE(F), stripping off trailing singletons.
0.03 1721 698 size_F = size(F);
0.02 1721 699 last = max([1 find(size_F ~= 1)]);
0.01 1721 700 size_F = size_F(1:last);
701
702 % SIZE_F can't be longer than OSIZE.
0.01 1721 703 N = length(osize);
1721 704 q = (length(size_F) <= N);
0.01 1721 705 if q
706 % Add (back) enough singletons to make size_F the same length as OSIZE.
0.03 1721 707 size_F = [size_F ones(1,N-length(size_F))];
708
709 % Each value in SIZE_F must be unity (or zero), or must match OSIZE.
0.01 1721 710 q = all(size_F == 1 | size_F == osize);
0.02 1721 711 end
0.02 1721 712 if ~q
713 error(message('images:tformarray:sizeMismatchFA'));
714 end
1721 715 end

Other subfunctions in this file are not included in this listing.