This is a static copy of a profile report

Home

applylut>ParseInputs (53371 calls, 6.289 sec)
Generated 05-Nov-2014 07:52:46 using cpu time.
subfunction in file /usr1/opt/matlab/7.13/toolbox/images/images/applylut.m
Copy to new window for comparing multiple runs

Parents (calling functions)

Function NameFunction TypeCalls
applylutfunction53371
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
45
iptcheckinput(varargin{1}, {'n...
533711.672 s26.6%
44
iptchecknargin(2,2,nargin,mfil...
533711.562 s24.8%
47
iptcheckinput(varargin{2}, {'n...
533711.182 s18.8%
51
A = varargin{1};
533710.411 s6.5%
57
LUT = varargin{2};
533710.300 s4.8%
All other lines  1.162 s18.5%
Totals  6.289 s100% 
Children (called functions)

Function NameFunction TypeCallsTotal Time% TimeTime Plot
iptcheckinputMEX-file1067420.791 s12.6%
iptchecknarginfunction533710.561 s8.9%
Self time (built-ins, overhead, etc.)  4.937 s78.5%
Totals  6.289 s100% 
Code Analyzer results
No Code Analyzer messages.
Coverage results
[ Show coverage for parent directory ]
Total lines in function19
Non-code lines (comments, blank lines)8
Code lines (lines that can run)11
Code lines that did run7
Code lines that did not run4
Coverage (did run/can run)63.64 %
Function listing
   time   calls  line
42 function [A,LUT] = ParseInputs(varargin)
43
1.56 53371 44 iptchecknargin(2,2,nargin,mfilename);
1.67 53371 45 iptcheckinput(varargin{1}, {'numeric','logical'},{'real','nonsparse','2d'}, ...
46 mfilename, 'A', 1);
1.18 53371 47 iptcheckinput(varargin{2}, {'numeric','logical'},{'real','vector'}, ...
48 mfilename, 'LUT', 2);
49
50 % force A to be logical
0.41 53371 51 A = varargin{1};
0.17 53371 52 if ~islogical(A)
53 A = A ~= 0;
54 end
55
56 % force LUT to be double
0.30 53371 57 LUT = varargin{2};
0.29 53371 58 if ~isa(LUT,'double')
59 LUT = double(LUT);
60 end

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