This is a static copy of a profile report

Home

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)

Function NameFunction TypeCalls
scribe/private/islegendablefunction51
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
18
i = strmatch(name,methods(obj)...
510.077 s87.5%
16
error(nargchk(2,2,nargin,'stru...
510.011 s12.5%
19
f = ~isempty(i);
510 s0%
All other lines  0.000 s0.0%
Totals  0.087 s100% 
Children (called functions)

Function NameFunction TypeCallsTotal Time% TimeTime Plot
cell.strmatchfunction510.066 s75.0%
Self time (built-ins, overhead, etc.)  0.022 s25.0%
Totals  0.087 s100% 
Code Analyzer results
Line numberMessage
18STRMATCH 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 function19
Non-code lines (comments, blank lines)16
Code lines (lines that can run)3
Code lines that did run3
Code lines that did not run0
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);