This is a static copy of a profile reportHome
ishold (6 calls, 0.000 sec)
Generated 05-Aug-2011 13:03:47 using cpu time.
function in file /usr/local/MATLAB/R2011a/toolbox/matlab/graphics/ishold.m
Copy to new window for comparing multiple runs
Parents (calling functions)
Lines where the most time was spent
No measurable time spent in this functionLine Number | Code | Calls | Total Time | % Time | Time Plot |
31 | strcmp(get(cf,'nextplot'),'add... | 6 | 0 s | 0% |  |
30 | holdstate = strcmp(get(ca,'nex... | 6 | 0 s | 0% |  |
28 | end | 6 | 0 s | 0% |  |
27 | cf = ancestor(ca,'figure'); | 6 | 0 s | 0% |  |
26 | ca=ca(1); | 6 | 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 | 31 |
Non-code lines (comments, blank lines) | 18 |
Code lines (lines that can run) | 13 |
Code lines that did run | 7 |
Code lines that did not run | 6 |
Coverage (did run/can run) | 53.85 % |
Function listing
time calls line
1 function holdstate = ishold(ca)
2 %ISHOLD Return hold state.
3 % ISHOLD returns 1 if hold is on, and 0 if it is off.
4 % When HOLD is ON, the current plot and all axis properties
5 % are held so that subsequent graphing commands add to the
6 % existing graph.
7 %
8 % Hold on means the NextPlot property of both figure
9 % and axes is set to "add".
10 %
11 % See also HOLD, NEWPLOT, FIGURE, AXES.
12
13 % Copyright 1984-2003 The MathWorks, Inc.
14 % $Revision: 5.11.4.2 $ $Date: 2004/04/10 23:28:51 $
15
16 %ISHOLD(AXH) returns whether hold is on for the specified axis
17
6 18 if nargin<1
19 cf = gcf;
20 ca = get(cf,'currentaxes');
21 if isempty(ca)
22 holdstate = 0;
23 return;
24 end
6 25 else
6 26 ca=ca(1);
6 27 cf = ancestor(ca,'figure');
6 28 end
29
6 30 holdstate = strcmp(get(ca,'nextplot'),'add') & ...
6 31 strcmp(get(cf,'nextplot'),'add');