This is a static copy of a profile reportHome
closereq (1 call, 0.040 sec)
Generated 05-Nov-2014 07:52:55 using cpu time.
function in file /usr1/opt/matlab/7.13/toolbox/matlab/graphics/closereq.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 |
24 | delete(gcbf); | 1 | 0.040 s | 100.0% |  |
26 | end | 1 | 0 s | 0% |  |
25 | end | 1 | 0 s | 0% |  |
23 | else | 1 | 0 s | 0% |  |
20 | if (isa(gcbf,'ui.figure')) | 1 | 0 s | 0% |  |
All other lines | | | 0 s | 0% |  |
Totals | | | 0.040 s | 100% | |
Children (called functions)
Code Analyzer results
No Code Analyzer messages.Coverage results
[ Show coverage for parent directory ]
Total lines in function | 26 |
Non-code lines (comments, blank lines) | 14 |
Code lines (lines that can run) | 12 |
Code lines that did run | 7 |
Code lines that did not run | 5 |
Coverage (did run/can run) | 58.33 % |
Function listing
time calls line
1 function closereq
2 %CLOSEREQ Figure close request function.
3 % CLOSEREQ deletes the current figure window. By default, CLOSEREQ is
4 % the CloseRequestFcn for new figures.
5
6 % Copyright 1984-2009 The MathWorks, Inc.
7 % $Revision: 1.9.4.4 $ $Date: 2009/10/24 19:18:02 $
8
9 % Note that closereq now honors the user's ShowHiddenHandles setting
10 % during figure deletion. This means that deletion listeners and
11 % DeleteFcns will now operate in an environment which is not guaranteed
12 % to show hidden handles.
1 13 if isempty(gcbf)
14 if length(dbstack) == 1
15 warning('MATLAB:closereq', ...
16 'Calling closereq from the command line is now obsolete, use close instead');
17 end
18 close force
1 19 else
1 20 if (isa(gcbf,'ui.figure'))
21 % Convert GBT1.5 figure to a double.
22 delete(double(gcbf));
1 23 else
0.04 1 24 delete(gcbf);
1 25 end
1 26 end