This is a static copy of a profile report

Home

cell.strmatch (32774 calls, 10.394 sec)
Generated 05-Nov-2014 07:52:32 using cpu time.
function in file /usr1/opt/matlab/7.13/toolbox/matlab/strfun/@cell/strmatch.m
Copy to new window for comparing multiple runs

Parents (calling functions)

Function NameFunction TypeCalls
imrotate>parse_inputssubfunction3442
maketform>getTransformTypesubfunction8605
imrotate>useIPPsubfunction1721
makeresampler>FindValuesubfunction1721
makeresampler>GetCanonicalStringsubfunction3442
images/private/isresamplerfunction1721
conndeffunction12118
ml_estpdf>ml_estpdf_checkvarsubfunction4
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
28
out = strmatch(str,strs);
310535.027 s48.4%
18
if iscellstr(strs), strs = cha...
327742.113 s20.3%
17
if iscellstr(str), str = char(...
327741.542 s14.8%
30
out = strmatch(str,strs,flag);
17210.551 s5.3%
16
if isempty(strs), out = []; re...
327740.280 s2.7%
All other lines  0.881 s8.5%
Totals  10.394 s100% 
Children (called functions)

Function NameFunction TypeCallsTotal Time% TimeTime Plot
strmatchfunction327745.157 s49.6%
iscellstrfunction655482.634 s25.3%
Self time (built-ins, overhead, etc.)  2.604 s25.0%
Totals  10.394 s100% 
Code Analyzer results
No Code Analyzer messages.
Coverage results
[ Show coverage for parent directory ]
Total lines in function31
Non-code lines (comments, blank lines)14
Code lines (lines that can run)17
Code lines that did run11
Code lines that did not run6
Coverage (did run/can run)64.71 %
Function listing
   time   calls  line
1 function out = strmatch(str,strs,flag)
2 %STRMATCH Cell array based string matching.
3 % Implementation of STRMATCH for cell arrays of strings.
4 %
5 % STRMATCH will be removed in a future release. Use STRNCMP instead.
6 %
7 % See also STRMATCH.
8
9 % Loren Dean 9/19/95
10 % Copyright 1984-2009 The MathWorks, Inc.
11 % $Revision: 1.15.4.7 $
12
0.10 32774 13 if nargin < 2 || nargin > 3
14 error(nargchk(2,3,nargin,'struct'));
15 end
0.28 32774 16 if isempty(strs), out = []; return; end
1.54 32774 17 if iscellstr(str), str = char(str); end
2.11 32774 18 if iscellstr(strs), strs = char(strs); end
19
0.16 32774 20 if ~ischar(str) || ~ischar(strs)
21 error(message('MATLAB:strmatch:InvalidInput'));
22 end
0.07 32774 23 if (nargin==3) && ~ischar(flag)
24 error(message('MATLAB:strmatch:InvalidFlagInput'));
25 end
26
0.09 32774 27 if nargin==2,
5.03 31053 28 out = strmatch(str,strs);
0.01 1721 29 else
0.55 1721 30 out = strmatch(str,strs,flag);
1721 31 end

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