This is a static copy of a profile report

Home

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

Parents (calling functions)

Function NameFunction TypeCalls
histfunction52
holdfunction96
parseplotapifunction37
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
20
inds = find(strcmpi('parent',a...
1850.020 s50.0%
19
if nargs > 0
1850.010 s25.0%
30
end
1850 s0%
21
if ~isempty(inds)
1850 s0%
14
if (nargs > 0) && (...
1850 s0%
All other lines  0.010 s25.0%
Totals  0.040 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)10
Code lines (lines that can run)20
Code lines that did run8
Code lines that did not run12
Coverage (did run/can run)40.00 %
Function listing
time 
calls 
 line
   1 
function [ax,args,nargs] = axescheck(varargin)
   2 
%AXESCHECK Process leading Axes object from input list
   3 
%   [AX,ARGS,NARGS] = AXESCHECK(ARG1,ARG2,...) checks if ARG1 is an Axes
   4 
%   and returns it in AX if it is and returns the processed argument
   5 
%   list in ARGS and NARGS.  If ARG1 is not an Axes, AX will return empty.
   6 
%   Also checks arguments that are property-value pairs 'parent',ARG.
   7 

   8 
%    Copyright 1984-2006 The MathWorks, Inc.
   9 
%    $Revision $  
  10 

    185 
  11 
args = varargin; 
    185 
  12 
nargs = nargin; 
    185 
  13 
ax=[]; 
    185 
  14 
if (nargs > 0) && (numel(args{1}) == 1) && ishghandle(args{1},'axes') 
  15 
  ax = args{1};
  16 
  args = args(2:end);
  17 
  nargs = nargs-1;
  18 
end
  0.01 
    185 
  19 
if nargs > 0 
  0.02 
    185 
  20 
  inds = find(strcmpi('parent',args)); 
    185 
  21 
  if ~isempty(inds) 
  22 
    inds = unique([inds inds+1]);
  23 
    pind = inds(end);
  24 
    if nargs >= pind && ishghandle(args{pind})
  25 
      ax = args{pind};
  26 
      args(inds) = [];
  27 
      nargs = length(args);
  28 
    end
  29 
  end
    185 
  30 
end