This is a static copy of a profile reportHome
refresh (1 call, 0.000 sec)
Generated 15-Mar-2007 12:02:07 using real time.
M-function in file C:\Program Files\MATLAB71\toolbox\matlab\graphics\refresh.m
[Copy to new window for comparing multiple runs]
Parents (calling functions)
Function Name | Function Type | Calls |
clf | M-function | 1 |
Lines where the most time was spent
Line Number | Code | Calls | Total Time | % Time | Time Plot |
11 | objtype = ''; | 1 | 0.000 s | 53.7% |  |
32 | tmpcolor = [0 0 0]; | 1 | 0.000 s | 45.8% |  |
33 | end | 1 | 0.000 s | 0.3% |  |
31 | else | 1 | 0.000 s | 0.2% |  |
34 | set(h,'color',tmpcolor,'color'... | 1 | 0 s | 0% |  |
Other lines & overhead | | | 0 s | 0% |  |
Totals | | | 0.000 s | 100% | |
Children (called functions)
No childrenM-Lint results
Line number | Message |
24 | Extra comma is unnecessary. |
29 | Function 'ISSTR' is deprecated. Use 'ISCHAR' instead. |
29 | Use && instead of & as the AND operator in (scalar) conditional statements. |
29 | Operator '[' is seldom used in a scalar context. |
Coverage results
[ Show coverage for parent directory ]
Total lines in file | 34 |
Non-code lines (comments, blank lines) | 12 |
Code lines (lines that can run) | 22 |
Code lines that did run | 11 |
Code lines that did not run | 11 |
Coverage (did run/can run) | 50.00 % |
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-2004 The MathWorks, Inc.
8 % $Revision: 5.11.4.2 $ $Date: 2005/06/21 19:33:29 $
9
1 10 if nargin==1,
< 0.01 1 11 objtype = '';
1 12 try
13 % don't need a catch, we just want to know if this is a figure
1 14 objtype = get(h,'type');
15 catch
16 if ~isempty(findstr(lasterr,'Invalid handle'))
17 rethrow(lasterror)
18 end
19 end
20
1 21 if ~strcmp(objtype,'figure'),
22 error('Handle does not refer to a figure object')
23 end
24 else,
25 h = gcf;
26 end
27
1 28 color = get(h,'color');
1 29 if ~isstr(color) & color == [0 0 0]
30 tmpcolor = [1 1 1];
< 0.01 1 31 else
< 0.01 1 32 tmpcolor = [0 0 0];
< 0.01 1 33 end
1 34 set(h,'color',tmpcolor,'color',color);