This is a static copy of a profile report

Home

ishold (6613 calls, 1.109 sec)
Generated 14-Nov-2016 07:47:13 using cpu time.
function in file /usr/local/MATLAB/MATLAB_Production_Server/R2015a/toolbox/matlab/graphics/ishold.m
Copy to new window for comparing multiple runs

Parents (calling functions)

Function NameFunction TypeCalls
LOH_hapmap_v4function6396
specgraph/...te/areaHGUsingMATLABClassesfunction37
angle_plot_subfiguresscript62
allelic_ratios_WGseqfunction118
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
29
holdstate = strcmp(get(ca,'nex...
66130.575 s51.8%
26
cf = ancestor(ca,'figure');
66130.252 s22.7%
25
ca=ca(1);
66130.091 s8.2%
30
strcmp(get(cf,'nextplot'),'add...
66130.030 s2.7%
27
end
66130.020 s1.8%
All other lines  0.141 s12.7%
Totals  1.109 s100% 
Children (called functions)
No children
Code Analyzer results
No Code Analyzer messages.
Coverage results
Show coverage for parent directory
Total lines in function30
Non-code lines (comments, blank lines)17
Code lines (lines that can run)13
Code lines that did run7
Code lines that did not run6
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 

  15 
%ISHOLD(AXH) returns whether hold is on for the specified axis
  16 

  0.01 
   6613 
  17 
if nargin<1 
  18 
    cf = gcf;
  19 
    ca = get(cf,'currentaxes');
  20 
    if isempty(ca)
  21 
        holdstate = 0;
  22 
        return;
  23 
    end
  0.01 
   6613 
  24 
else 
  0.09 
   6613 
  25 
    ca=ca(1); 
  0.25 
   6613 
  26 
    cf = ancestor(ca,'figure'); 
  0.02 
   6613 
  27 
end 
  28 

  0.57 
   6613 
  29 
holdstate = strcmp(get(ca,'nextplot'),'add') & ... 
  0.03 
   6613 
  30 
           strcmp(get(cf,'nextplot'),'add');