This is a static copy of a profile reportHome
graphics.linkprop.linkprop (1 call, 0.066 sec)
Generated 05-Aug-2011 13:03:27 using cpu time.
function in file /usr/local/MATLAB/R2011a/toolbox/matlab/graphics/@graphics/@linkprop/linkprop.m
Copy to new window for comparing multiple runs
Parents (calling functions)
Function Name | Function Type | Calls |
linkprop | function | 1 |
Lines where the most time was spent
Line Number | Code | Calls | Total Time | % Time | Time Plot |
38 | feval(get(hThis,'UpdateFcn'),h... | 1 | 0.066 s | 100.0% |  |
35 | set(hThis,'PropertyNames',prop... | 1 | 0 s | 0% |  |
34 | set(hThis,'Targets',hlist); | 1 | 0 s | 0% |  |
31 | end | 1 | 0 s | 0% |  |
30 | hlist = hlist'; | 1 | 0 s | 0% |  |
All other lines | | | 0 s | 0% |  |
Totals | | | 0.066 s | 100% | |
Children (called functions)
Code Analyzer results
Line number | Message |
14 | ISSTR will be removed in a future release. Use ISCHAR instead. |
Coverage results
[ Show coverage for parent directory ]
Total lines in function | 38 |
Non-code lines (comments, blank lines) | 15 |
Code lines (lines that can run) | 23 |
Code lines that did run | 18 |
Code lines that did not run | 5 |
Coverage (did run/can run) | 78.26 % |
Function listing
time calls line
1 function [hThis] = linkprop(hlist,propnames)
2
3 % Copyright 2003-2010 The MathWorks, Inc.
4
1 5 hThis = graphics.linkprop;
1 6 m(1) = handle.listener(hThis,findprop(hThis,'Enabled'),'PropertyPostSet',{@localSetEnabled,hThis});
1 7 set(hThis,'InternalListeners',m);
1 8 set(hThis,'UpdateFcn',@localUpdateListeners);
9
10 % Cast first input argument into handle array
1 11 hlist = handle(hlist);
12
13 % Cast second input argument into cell array
1 14 if isstr(propnames)
1 15 propnames = {propnames};
1 16 end
17
1 18 if all(isobject(hlist))
19 if ~all(isvalid(hlist))
20 error('MATLAB:graphics:proplink', 'Invalid handle vector');
21 end
1 22 else
1 23 if ~all(ishandle(hlist))
24 error('MATLAB:graphics:proplink', 'Invalid handle vector');
25 end
1 26 end
27
28 % Convert mx1 vector to 1xm vector for consistency
1 29 if size(hlist,1)>1
1 30 hlist = hlist';
1 31 end
32
33 % Save state to object
1 34 set(hThis,'Targets',hlist);
1 35 set(hThis,'PropertyNames',propnames);
36
37 % Update listeners, call to pseudo-private method
0.07 1 38 feval(get(hThis,'UpdateFcn'),hThis);
Other subfunctions in this file are not included in this listing.