This is a static copy of a profile reportHome
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)
Lines where the most time was spent
Line Number | Code | Calls | Total Time | % Time | Time Plot |
415 | imatch = strmatch(lower(curren... | 1721 | 0.601 s | 85.7% |  |
414 | if ischar(current_name) | 1721 | 0.030 s | 4.3% |  |
412 | for i = 1:((nargin-2)/2) | 1721 | 0.020 s | 2.9% |  |
434 | end | 1721 | 0.010 s | 1.4% |  |
433 | end | 1721 | 0 s | 0% |  |
All other lines | | | 0.040 s | 5.7% |  |
Totals | | | 0.701 s | 100% | |
Children (called functions)
Function Name | Function Type | Calls | Total Time | % Time | Time Plot |
cell.strmatch | function | 1721 | 0.571 s | 81.4% |  |
Self time (built-ins, overhead, etc.) | | | 0.130 s | 18.6% |  |
Totals | | | 0.701 s | 100% | |
Code Analyzer results
Line number | Message |
415 | STRMATCH will be removed in a future release. Use STRNCMP instead. |
Coverage results
[ Show coverage for parent directory ]
Total lines in function | 26 |
Non-code lines (comments, blank lines) | 2 |
Code lines (lines that can run) | 24 |
Code lines that did run | 10 |
Code lines that did not run | 14 |
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.