This is a static copy of a profile reportHome
refresh (10 calls, 0.000 sec)
Generated 05-Aug-2011 13:03:27 using cpu time.
function in file /usr/local/MATLAB/R2011a/toolbox/matlab/graphics/refresh.m
Copy to new window for comparing multiple runs
Parents (calling functions)
Function Name | Function Type | Calls |
clf | function | 10 |
Lines where the most time was spent
No measurable time spent in this functionLine Number | Code | Calls | Total Time | % Time | Time Plot |
27 | set(h,'color',tmpcolor,'color'... | 10 | 0 s | 0% |  |
26 | end | 10 | 0 s | 0% |  |
25 | tmpcolor = [0 0 0]; | 10 | 0 s | 0% |  |
24 | else | 10 | 0 s | 0% |  |
22 | if ~ischar(color) && a... | 10 | 0 s | 0% |  |
All other lines | | | 0 s | 0% |  |
Totals | | | 0 s | 0% | |
Children (called functions)
No childrenCode Analyzer results
No Code Analyzer messages.Coverage results
[ Show coverage for parent directory ]
Total lines in function | 27 |
Non-code lines (comments, blank lines) | 13 |
Code lines (lines that can run) | 14 |
Code lines that did run | 8 |
Code lines that did not run | 6 |
Coverage (did run/can run) | 57.14 % |
Function listing
time calls line
1 function refresh(h)
2 %REFRESH Refresh figure.
3 % REFRESH causes the current figure window to be redrawn.
4 % REFRESH(FIG) causes the figure FIG to be redrawn.
5
6 % D. Thomas 5/26/93
7 % Copyright 1984-2009 The MathWorks, Inc.
8 % $Revision: 5.11.4.6 $ $Date: 2009/02/18 02:18:36 $
9
10 10 if nargin==1,
10 11 if ~any(ishghandle(h, 'figure'))
12 error('MATLAB:refresh:InvalidHandle', ...
13 'Handle does not refer to a figure object')
14 end
15 else
16 h = gcf;
17 end
18
19 % The following toggle of the figure color property is
20 % only to set the 'dirty' flag to trigger a redraw.
10 21 color = get(h,'color');
10 22 if ~ischar(color) && all(color == [0 0 0])
23 tmpcolor = [1 1 1];
10 24 else
10 25 tmpcolor = [0 0 0];
10 26 end
10 27 set(h,'color',tmpcolor,'color',color);