This is a static copy of a profile report

Home

imformats>find_in_registry (2 calls, 0.000 sec)
Generated 15-Mar-2007 12:01:56 using real time.
M-subfunction in file C:\Program Files\MATLAB71\toolbox\matlab\imagesci\imformats.m
[Copy to new window for comparing multiple runs]

Parents (calling functions)

Function NameFunction TypeCalls
imformatsM-function2
Lines where the most time was spent
No measurable time spent in this function

Line NumberCodeCallsTotal Time% TimeTime Plot
519
out = in(match);
20 s0%
517
case 1
20 s0%
514
case 0
20 s0%
513
switch (sum(match))
20 s0%
510
end
320 s0%
Other lines & overhead  0 s0%
Totals  0.000 s0% 
Children (called functions)
No children
M-Lint results
Line numberMessage
Coverage results
[ Show coverage for parent directory ]
Total lines in file36
Non-code lines (comments, blank lines)20
Code lines (lines that can run)16
Code lines that did run10
Code lines that did not run6
Coverage (did run/can run)62.50 %
Function listing
   time   calls  line
494 function [out, match] = find_in_registry(in, key)
495 %FIND_IN_REGISTRY Find a particular format given
496
497 % Verify that key is a single, 1-D character array
2 498 if ((~ischar(key)) || (isempty(key)) || (size(key, 2) ~= numel(key)))
499 error('MATLAB:imformats:formatNotCharVector', ...
500 'Format specifier must be a 1-D character array.')
501 end
502
503 % Convert key to lowercase
2 504 key = lower(key);
505
506 % Look for the input format in the formats registry
2 507 match = false(1,length(in));
2 508 for p = 1:length(in)
32 509 match(p) = any(strcmp(key, in(p).ext));
32 510 end
511
512 % Check whether the format was found
2 513 switch (sum(match))
2 514 case 0
515 % Not found.
516 out = struct([]);
2 517 case 1
518 % One match found.
2 519 out = in(match);
520 otherwise
521 % Too many found.
522 error('MATLAB:imformats:tooManyFormats', ...
523 'Too many formats found for extension "%s".', key)
524 end
525
526
527 %%%
528 %%% Function whoami
529 %%%

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