This is a static copy of a profile report

Home

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

Line NumberCodeCallsTotal Time% TimeTime Plot
11
objtype = '';
10.000 s53.7%
32
tmpcolor = [0 0 0];
10.000 s45.8%
33
end
10.000 s0.3%
31
else
10.000 s0.2%
34
set(h,'color',tmpcolor,'color'...
10 s0%
Other lines & overhead  0 s0%
Totals  0.000 s100% 
Children (called functions)
No children
M-Lint results
Line numberMessage
24Extra comma is unnecessary.
29Function 'ISSTR' is deprecated. Use 'ISCHAR' instead.
29Use && instead of & as the AND operator in (scalar) conditional statements.
29Operator '[' is seldom used in a scalar context.
Coverage results
[ Show coverage for parent directory ]
Total lines in file34
Non-code lines (comments, blank lines)12
Code lines (lines that can run)22
Code lines that did run11
Code lines that did not run11
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);