This is a static copy of a profile report

Home

Function details for graph2d/private/labelcheckThis is a static copy of a profile report

Home

graph2d/private/labelcheck (Calls: 6, Time: 0.002 s)
Generated 01-May-2020 20:23:10 using performance time.
function in file /Applications/MATLAB_R2018a.app/toolbox/matlab/graph2d/private/labelcheck.m
Copy to new window for comparing multiple runs

Parents (calling functions)

Function NameFunction TypeCalls
titlefunction2
xlabelfunction2
ylabelfunction2
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
8
nargs = length(varargin{:});
60.000 s17.9%
16
inds = find(strcmpi('parent',a...
60.000 s17.0%
10
if (nargs > 0) && (...
60.000 s15.1%
7
args = varargin{:};
60.000 s12.6%
15
if nargs > 0
60.000 s9.9%
All other lines  0.000 s27.7%
Totals  0.002 s100% 
Children (called functions)
No children
Code Analyzer results
No Code Analyzer messages.
Coverage results
Show coverage for parent directory
Total lines in function26
Non-code lines (comments, blank lines)6
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] = labelcheck(propname,varargin)
   2 
% Determines if object has text property named propname
   3 
% 
   4 

   5 
%   Copyright 2013 The MathWorks, Inc.
   6 

< 0.001 
      6 
   7
args = varargin{:}; 
< 0.001 
      6 
   8
nargs = length(varargin{:}); 
< 0.001 
      6 
   9
ax=[]; 
< 0.001 
      6 
  10
if (nargs > 0) && (numel(args{1}) == 1) && local_validlabelobj(args{1},propname) 
  11 
  ax = args{1};
  12 
  args = args(2:end);
  13 
  nargs = nargs-1;
  14 
end
< 0.001 
      6 
  15
if nargs > 0 
< 0.001 
      6 
  16
  inds = find(strcmpi('parent',args)); 
< 0.001 
      6 
  17
  if ~isempty(inds) 
  18 
    inds = unique([inds inds+1]);
  19 
    pind = inds(end);
  20 
    if nargs >= pind && local_validlabelobj(args{pind},propname)
  21 
      ax = args{pind};
  22 
      args(inds) = [];
  23 
      nargs = length(args);
  24 
    end
  25 
  end
< 0.001 
      6 
  26
end 

Other subfunctions in this file are not included in this listing.