This is a static copy of a profile reportHome
cell.strmatch (3 calls, 0.000 sec)
Generated 15-Mar-2007 12:02:03 using real time.
M-function in file C:\Program Files\MATLAB71\toolbox\matlab\strfun\@cell\strmatch.m
[Copy to new window for comparing multiple runs]
Parents (calling functions)
Function Name | Function Type | Calls |
iptgetpref | M-function | 3 |
Lines where the most time was spent
No measurable time spent in this functionLine Number | Code | Calls | Total Time | % Time | Time Plot |
11 | if isempty(strs), out = []; re... | 3 | 0 s | 0% |  |
10 | error(nargchk(2,3,nargin)); | 3 | 0 s | 0% |  |
Other lines & overhead | | | 0 s | 0% |  |
Totals | | | 0.000 s | 0% | |
Children (called functions)
No childrenM-Lint results
No M-Lint messages.Coverage results
[ Show coverage for parent directory ]
Total lines in file | 27 |
Non-code lines (comments, blank lines) | 12 |
Code lines (lines that can run) | 15 |
Code lines that did run | 2 |
Code lines that did not run | 13 |
Coverage (did run/can run) | 13.33 % |
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. See
4 % STRMATCH for more info.
5
6 % Loren Dean 9/19/95
7 % Copyright 1984-2004 The MathWorks, Inc.
8 % $Revision: 1.15.4.1 $
9
3 10 error(nargchk(2,3,nargin));
3 11 if isempty(strs), out = []; return; end
12 if iscellstr(str), str = char(str); end
13 if iscellstr(strs), strs = char(strs); end
14
15 if ~ischar(str) || ~ischar(strs)
16 error('Requires character array or cell array of strings as inputs.')
17 end
18 if (nargin==3) && ~ischar(flag)
19 error('FLAG must be a string.');
20 end
21
22 if nargin==2,
23 out = strmatch(str,strs);
24 else
25 out = strmatch(str,strs,flag);
26 end
27