This is a static copy of a profile report

Home

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 NameFunction TypeCalls
linkpropfunction1
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
38
feval(get(hThis,'UpdateFcn'),h...
10.066 s100.0%
35
set(hThis,'PropertyNames',prop...
10 s0%
34
set(hThis,'Targets',hlist);
10 s0%
31
end
10 s0%
30
hlist = hlist';
10 s0%
All other lines  0 s0%
Totals  0.066 s100% 
Children (called functions)

Function NameFunction TypeCallsTotal Time% TimeTime Plot
...inkprop.linkprop>localUpdateListenerssubfunction10.066 s100.0%
Self time (built-ins, overhead, etc.)  0 s0%
Totals  0.066 s100% 
Code Analyzer results
Line numberMessage
14ISSTR will be removed in a future release. Use ISCHAR instead.
Coverage results
[ Show coverage for parent directory ]
Total lines in function38
Non-code lines (comments, blank lines)15
Code lines (lines that can run)23
Code lines that did run18
Code lines that did not run5
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.