This is a static copy of a profile reportHome
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 Name | Function Type | Calls |
tformarray | function | 1721 |
Lines where the most time was spent
Line Number | Code | Calls | Total Time | % Time | Time Plot |
707 | size_F = [size_F ones(1,N-leng... | 1721 | 0.030 s | 15.0% |  |
698 | size_F = size(F); | 1721 | 0.030 s | 15.0% |  |
712 | if ~q | 1721 | 0.020 s | 10.0% |  |
711 | end | 1721 | 0.020 s | 10.0% |  |
699 | last = max([1 find(size_F ~= 1... | 1721 | 0.020 s | 10.0% |  |
All other lines | | | 0.080 s | 40.0% |  |
Totals | | | 0.200 s | 100% | |
Children (called functions)
No childrenCode Analyzer results
No Code Analyzer messages.Coverage results
[ Show coverage for parent directory ]
Total lines in function | 28 |
Non-code lines (comments, blank lines) | 9 |
Code lines (lines that can run) | 19 |
Code lines that did run | 14 |
Code lines that did not run | 5 |
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.