This is a static copy of a profile reportHome
ismethod (51 calls, 0.087 sec)
Generated 05-Aug-2011 13:01:21 using cpu time.
function in file /usr/local/MATLAB/R2011a/toolbox/matlab/datatypes/ismethod.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 |
18 | i = strmatch(name,methods(obj)... | 51 | 0.077 s | 87.5% |  |
16 | error(nargchk(2,2,nargin,'stru... | 51 | 0.011 s | 12.5% |  |
19 | f = ~isempty(i); | 51 | 0 s | 0% |  |
All other lines | | | 0.000 s | 0.0% |  |
Totals | | | 0.087 s | 100% | |
Children (called functions)
Function Name | Function Type | Calls | Total Time | % Time | Time Plot |
cell.strmatch | function | 51 | 0.066 s | 75.0% |  |
Self time (built-ins, overhead, etc.) | | | 0.022 s | 25.0% |  |
Totals | | | 0.087 s | 100% | |
Code Analyzer results
Line number | Message |
18 | STRMATCH will be removed in a future release. Replace STRMATCH(STR, STRARRAY, 'exact') with STRCMP(STR, STRARRAY). |
Coverage results
[ Show coverage for parent directory ]
Total lines in function | 19 |
Non-code lines (comments, blank lines) | 16 |
Code lines (lines that can run) | 3 |
Code lines that did run | 3 |
Code lines that did not run | 0 |
Coverage (did run/can run) | 100.00 % |
Function listing
time calls line
1 function f = ismethod(obj,name)
2 %ISMETHOD True if method of object.
3 % ISMETHOD(OBJ,NAME) returns 1 if string NAME is a method of object
4 % OBJ, and 0 otherwise.
5 %
6 % Example:
7 % Hd = dfilt.df2;
8 % f = ismethod(Hd, 'order')
9 %
10 % See also METHODS.
11
12 % Author: Thomas A. Bryan
13 % Copyright 1999-2006 The MathWorks, Inc.
14 % $Revision: 1.4.4.2 $ $Date: 2006/06/20 20:09:41 $
15
0.01 51 16 error(nargchk(2,2,nargin,'struct'))
17
0.08 51 18 i = strmatch(name,methods(obj),'exact');
51 19 f = ~isempty(i);