This is a static copy of a profile report

Home

isprop (34 calls, 0.000 sec)
Generated 18-Mar-2011 23:32:04 using cpu time.
M-function in file /Applications/MATLAB_R2010a.app/toolbox/matlab/datatypes/isprop.m
Copy to new window for comparing multiple runs

Parents (calling functions)

Function NameFunction TypeCalls
scribe/private/get_legendable_childrenM-function2
legend>check_legend_stringsM-subfunction7
scribe.legend.initM-function4
...nd.methods>create_plotchild_listenersM-subfunction9
legendcolorbarlayout>doLayoutCBM-subfunction12
Lines where the most time was spent
No measurable time spent in this function

Line NumberCodeCallsTotal Time% TimeTime Plot
21
end
340 s0%
20
valid(i) = ~isempty(p) &&a...
340 s0%
19
p=findprop(handle(varargin{1}(...
340 s0%
18
for i = 1:numel(varargin{1})
340 s0%
17
valid = false(size(varargin{1}...
340 s0%
All other lines  0 s0%
Totals  0 s0% 
Children (called functions)
No children
M-Lint results
No M-Lint messages.
Coverage results
[ Show coverage for parent directory ]
Total lines in function31
Non-code lines (comments, blank lines)10
Code lines (lines that can run)21
Code lines that did run9
Code lines that did not run12
Coverage (did run/can run)42.86 %
Function listing
   time   calls  line
1 function valid = isprop(varargin)
2 %ISPROP Returns true if the property exists.
3 % ISPROP(H, PROP) Returns true if PROP is a property of H. This function
4 % tests for Handle objects and Handle Graphics objects.
5
6 % Copyright 1988-2008 The MathWorks, Inc.
7
34 8 try
34 9 switch nargin
34 10 case 2
11 % ISPROP for hg or handle object instances
34 12 if (isempty(varargin{1}))
13 valid = false;
14 return;
15 end
16
34 17 valid = false(size(varargin{1}));
34 18 for i = 1:numel(varargin{1})
34 19 p=findprop(handle(varargin{1}(i)), varargin{2});
34 20 valid(i) = ~isempty(p) && strcmpi(p.Name,varargin{2});
34 21 end
22 case 3
23 % ISPROP for class - package and class name
24 p=findprop(findclass(findpackage(varargin{1}),varargin{2}),varargin{3});
25 valid = ~isempty(p) && strcmpi(p.Name,varargin{3});
26 otherwise
27 valid = false;
28 end
29 catch e %#ok<NASGU>
30 valid = false;
31 end