This is a static copy of a profile report

Home

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

Parents (calling functions)

Function NameFunction TypeCalls
LOH_hapmap_v4function16
angle_plot_subfiguresscript12
allelic_ratios_WGseqfunction16
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
28
if nargin==2
440.010 s100.0%
45
end
440 s0%
44
end
440 s0%
43
set(ax,'ylim',val);
440 s0%
42
else
440 s0%
All other lines  0 s0%
Totals  0.010 s100% 
Children (called functions)
No children
Code Analyzer results
No Code Analyzer messages.
Coverage results
Show coverage for parent directory
Total lines in function45
Non-code lines (comments, blank lines)16
Code lines (lines that can run)29
Code lines that did run15
Code lines that did not run14
Coverage (did run/can run)51.72 %
Function listing
time 
calls 
 line
   1 
function a = ylim(arg1, arg2)
   2 
%YLIM Y limits.
   3 
%   YL = YLIM             gets the y limits of the current axes.
   4 
%   YLIM([YMIN YMAX])     sets the y limits.
   5 
%   YLMODE = YLIM('mode') gets the y limits mode.
   6 
%   YLIM(mode)            sets the y limits mode.
   7 
%                            (mode can be 'auto' or 'manual')
   8 
%   YLIM(AX,...)          uses axes AX instead of current axes.
   9 
%
  10 
%   YLIM sets or gets the YLim or YLimMode property of an axes.
  11 
%
  12 
%   See also PBASPECT, DASPECT, XLIM, ZLIM.
  13 
 
  14 
%   Copyright 1984-2005 The MathWorks, Inc. 
  15 

     44 
  16 
if nargin == 0 
  17 
  a = get(gca,'ylim');
     44 
  18 
else 
     44 
  19 
  if isscalar(arg1) && ishghandle(arg1) && isprop(arg1,'YLim') 
  20 
    ax = arg1;
  21 
    if nargin==2
  22 
      val = arg2;
  23 
    else
  24 
      a = get(ax,'ylim');
  25 
      return
  26 
    end
     44 
  27 
  else 
  0.01 
     44 
  28 
    if nargin==2 
  29 
      error(message('MATLAB:ylim:InvalidNumberArguments'))
     44 
  30 
    else 
     44 
  31 
      ax = gca; 
     44 
  32 
      val = arg1; 
     44 
  33 
    end 
     44 
  34 
  end 
  35 
    
     44 
  36 
  if ischar(val) 
  37 
    if(strcmp(val,'mode'))
  38 
      a = get(ax,'ylimmode');
  39 
    else
  40 
      set(ax,'ylimmode',val);
  41 
    end
     44 
  42 
  else 
     44 
  43 
    set(ax,'ylim',val); 
     44 
  44 
  end 
     44 
  45 
end