This is a static copy of a profile report

Home

makeresampler>FindValue (1721 calls, 0.701 sec)
Generated 05-Nov-2014 07:52:58 using cpu time.
subfunction in file /usr1/opt/matlab/7.13/toolbox/images/images/makeresampler.m
Copy to new window for comparing multiple runs

Parents (calling functions)

Function NameFunction TypeCalls
makeresamplerfunction1721
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
415
imatch = strmatch(lower(curren...
17210.601 s85.7%
414
if ischar(current_name)
17210.030 s4.3%
412
for i = 1:((nargin-2)/2)
17210.020 s2.9%
434
end
17210.010 s1.4%
433
end
17210 s0%
All other lines  0.040 s5.7%
Totals  0.701 s100% 
Children (called functions)

Function NameFunction TypeCallsTotal Time% TimeTime Plot
cell.strmatchfunction17210.571 s81.4%
Self time (built-ins, overhead, etc.)  0.130 s18.6%
Totals  0.701 s100% 
Code Analyzer results
Line numberMessage
415STRMATCH will be removed in a future release. Use STRNCMP instead.
Coverage results
[ Show coverage for parent directory ]
Total lines in function26
Non-code lines (comments, blank lines)2
Code lines (lines that can run)24
Code lines that did run10
Code lines that did not run14
Coverage (did run/can run)41.67 %
Function listing
   time   calls  line
409 function value = FindValue( property_name, property_strings, varargin )
410
1721 411 value = [];
0.02 1721 412 for i = 1:((nargin-2)/2)
1721 413 current_name = varargin{2*i-1};
0.03 1721 414 if ischar(current_name)
0.60 1721 415 imatch = strmatch(lower(current_name),property_strings);
1721 416 nmatch = length(imatch);
1721 417 if nmatch > 1
418 error(message('images:makeresampler:ambiguousPropertyName', current_name))
419 end
1721 420 if nmatch == 1
421 canonical_name = property_strings{imatch};
422 if strcmp(canonical_name, property_name)
423 if isempty(value)
424 if isempty(varargin{2*i})
425 error(message('images:makeresampler:emptyPropertyName', property_name))
426 end
427 value = varargin{2*i};
428 else
429 error(message('images:makeresampler:redundantPropertyName', property_name))
430 end
431 end
432 end
1721 433 end
0.01 1721 434 end

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