This is a static copy of a profile reportHome
linkprop (1 call, 0.066 sec)
Generated 05-Aug-2011 13:03:45 using cpu time.
function in file /usr/local/MATLAB/R2011a/toolbox/matlab/graphics/linkprop.m
Copy to new window for comparing multiple runs
Parents (calling functions)
Function Name | Function Type | Calls |
linkaxes | function | 1 |
Lines where the most time was spent
Line Number | Code | Calls | Total Time | % Time | Time Plot |
33 | h = graphics.linkprop(h,p); | 1 | 0.066 s | 100.0% |  |
All other lines | | | 0 s | 0% |  |
Totals | | | 0.066 s | 100% | |
Children (called functions)
Code Analyzer results
No Code Analyzer messages.Coverage results
[ Show coverage for parent directory ]
Total lines in function | 33 |
Non-code lines (comments, blank lines) | 32 |
Code lines (lines that can run) | 1 |
Code lines that did run | 1 |
Code lines that did not run | 0 |
Coverage (did run/can run) | 100.00 % |
Function listing
time calls line
1 function [h] = linkprop(h,p)
2 %LINKPROP Maintain same value for corresponding properties
3 % Use LINKPROP to maintain the same values for the
4 % corresponding properties of different objects.
5 %
6 % HLINK = LINKPROP(H,'PropertyName');
7 % Maintains the same value for the property 'PropertyName'
8 % on all objects whose handles appear in H. LINKPROP returns
9 % the link object HLINK.
10 %
11 % HLINK = LINKPROP(H,{'PropertyName1','PropertyName2',...});
12 % Maintains the same value for all properties passed as a cell
13 % array.
14 %
15 % It is necessary that the link object remain referenced
16 % within the context of where you want property linking
17 % to occur. You can keep the link object as a variable
18 % in the base workspace, make the link object GLOBAL,
19 % or store the link object in USERDATA property or
20 % in application data (SETAPPDATA).
21 %
22 % Example:
23 % h1 = line('xdata',1:10,'ydata',1:10);
24 % h2 = line('xdata',1:10,'ydata',10:-1:1);
25 % hlink = linkprop([h1,h2],'Color');
26 % set(h1,'Color',[.3 .4 .5])
27 % get(h2,'Color') % returns [.3 .4 .5]
28 %
29 % See also LINKAXES, SETAPPDATA, GLOBAL
30
31 % Copyright 2003 The MathWorks, Inc.
32
0.07 1 33 h = graphics.linkprop(h,p);
Other subfunctions in this file are not included in this listing.