This is a static copy of a profile report

Home

gcf (82 calls, 0.010 sec)
Generated 18-Mar-2011 23:31:44 using cpu time.
M-function in file /Applications/MATLAB_R2010a.app/toolbox/matlab/graphics/gcf.m
Copy to new window for comparing multiple runs

Parents (calling functions)

Function NameFunction TypeCalls
gridM-function2
holdM-function50
newplotM-function27
legendM-function2
axisM-function1
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
32
if isempty(h)
820 s0%
27
h = get(0,'CurrentFigure');
820 s0%
All other lines  0.010 s100.0%
Totals  0.010 s100% 
Children (called functions)
No children
M-Lint results
No M-Lint messages.
Coverage results
[ Show coverage for parent directory ]
Total lines in function34
Non-code lines (comments, blank lines)30
Code lines (lines that can run)4
Code lines that did run2
Code lines that did not run2
Coverage (did run/can run)50.00 %
Function listing
   time   calls  line
1 function h = gcf()
2 %GCF Get handle to current figure.
3 % H = GCF returns the handle of the current figure. The current
4 % figure is the window into which graphics commands like PLOT,
5 % TITLE, SURF, etc. will draw.
6 %
7 % The handle of the current figure is stored in the root
8 % property CurrentFigure, and can be queried directly using GET,
9 % and modified using FIGURE or SET.
10 %
11 % Clicking on uimenus and uicontrols contained within a figure,
12 % or clicking on the drawing area of a figure cause that
13 % figure to become current.
14 %
15 % The current figure is not necessarily the frontmost figure on
16 % the screen.
17 %
18 % GCF should not be relied upon during callbacks to obtain the
19 % handle of the figure whose callback is executing - use GCBO
20 % for that purpose.
21 %
22 % See also FIGURE, CLOSE, CLF, GCA, GCBO, GCO, GCBF.
23
24 % Copyright 1984-2002 The MathWorks, Inc.
25 % $Revision: 5.17 $ $Date: 2002/04/10 17:07:02 $
26
82 27 h = get(0,'CurrentFigure');
28
29 % 'CurrentFigure' is no longer guaranteed to return a figure,
30 % so we might need to create one (because gcf IS guaranteed to
31 % return a figure)
82 32 if isempty(h)
33 h = figure;
34 end