This is a static copy of a profile reportHome
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)
Lines where the most time was spent
No measurable time spent in this functionLine Number | Code | Calls | Total Time | % Time | Time Plot |
21 | end | 34 | 0 s | 0% |  |
20 | valid(i) = ~isempty(p) &&a... | 34 | 0 s | 0% |  |
19 | p=findprop(handle(varargin{1}(... | 34 | 0 s | 0% |  |
18 | for i = 1:numel(varargin{1}) | 34 | 0 s | 0% |  |
17 | valid = false(size(varargin{1}... | 34 | 0 s | 0% |  |
All other lines | | | 0 s | 0% |  |
Totals | | | 0 s | 0% | |
Children (called functions)
No childrenM-Lint results
No M-Lint messages.Coverage results
[ Show coverage for parent directory ]
Total lines in function | 31 |
Non-code lines (comments, blank lines) | 10 |
Code lines (lines that can run) | 21 |
Code lines that did run | 9 |
Code lines that did not run | 12 |
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