This is a static copy of a profile report

Home

imformats>find_in_registry (6 calls, 0.000 sec)
Generated 14-Nov-2016 07:47:23 using cpu time.
subfunction in file /usr/local/MATLAB/MATLAB_Production_Server/R2015a/toolbox/matlab/imagesci/imformats.m
Copy to new window for comparing multiple runs

Parents (calling functions)

Function NameFunction TypeCalls
imformatsfunction6
Lines where the most time was spent
No measurable time spent in this function

Line NumberCodeCallsTotal Time% TimeTime Plot
518
end
60 s0%
517
out = in(match);
60 s0%
515
case 1
60 s0%
512
case 0
60 s0%
511
switch (sum(match))
60 s0%
All other lines  0 s0%
Totals  0 s0% 
Children (called functions)
No children
Code Analyzer results
No Code Analyzer messages.
Coverage results
Show coverage for parent directory
Total lines in function21
Non-code lines (comments, blank lines)10
Code lines (lines that can run)11
Code lines that did run10
Code lines that did not run1
Coverage (did run/can run)90.91 %
Function listing
time 
calls 
 line
 498 
function [out, match] = find_in_registry(in, key)
 499 
%FIND_IN_REGISTRY  Find a particular format given
 500 

      6 
 501 
validateattributes(key,{'char'},{'nonempty','row'},'','KEY'); 
 502 

 503 

 504 
% Look for the input format in the formats registry
      6 
 505 
match = false(1,length(in)); 
      6 
 506 
for p = 1:length(in) 
    114 
 507 
    match(p) = any(strcmpi(key, in(p).ext)); 
    114 
 508 
end 
 509 

 510 
% Check whether the format was found
      6 
 511 
switch (sum(match)) 
      6 
 512 
case 0 
 513 
    % Not found.
 514 
    out = struct([]);
      6 
 515 
case 1 
 516 
    % One match found.
      6 
 517 
    out = in(match); 
      6 
 518 
end 

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