This is a static copy of a profile reportHome
graphics.linkprop.removetarget (3 calls, 0.011 sec)
Generated 05-Aug-2011 13:03:27 using cpu time.
function in file /usr/local/MATLAB/R2011a/toolbox/matlab/graphics/@graphics/@linkprop/removetarget.m
Copy to new window for comparing multiple runs
Parents (calling functions)
Lines where the most time was spent
Line Number | Code | Calls | Total Time | % Time | Time Plot |
15 | ind = find(t==h); | 3 | 0.011 s | 100.0% |  |
24 | end | 3 | 0 s | 0% |  |
23 | feval(get(hLink,'UpdateFcn'),h... | 3 | 0 s | 0% |  |
20 | set(hLink,'Targets',t); | 3 | 0 s | 0% |  |
19 | t(ind) = []; | 3 | 0 s | 0% |  |
All other lines | | | 0 s | 0% |  |
Totals | | | 0.011 s | 100% | |
Children (called functions)
Code Analyzer results
Line number | Message |
18 | Using ISEMPTY is usually faster than comparing LENGTH to 0. |
Coverage results
[ Show coverage for parent directory ]
Total lines in function | 24 |
Non-code lines (comments, blank lines) | 13 |
Code lines (lines that can run) | 11 |
Code lines that did run | 9 |
Code lines that did not run | 2 |
Coverage (did run/can run) | 81.82 % |
Function listing
time calls line
1 function removetarget(hLink,h)
2 %REMOVETARGET Remove handle for linking
3
4 % Copyright 2003-2009 The MathWorks, Inc.
5
3 6 if ~isobject(h) && ~ishandle(h)
7 return;
8 end
9
3 10 h = handle(h);
11
3 12 t = get(hLink,'Targets');
13
14 % only update if in list
0.01 3 15 ind = find(t==h);
16
17 % remove element
3 18 if length(ind)>0
3 19 t(ind) = [];
3 20 set(hLink,'Targets',t);
21
22 % Update listeners, call to pseudo-private method
3 23 feval(get(hLink,'UpdateFcn'),hLink,false);
3 24 end
Other subfunctions in this file are not included in this listing.