This is a static copy of a profile report

Home

usev6plotapi (Calls: 2, Time: 0.006 s)
Generated 16-Jul-2020 17:09:58 using performance time.
function in file /Applications/MATLAB_R2020a.app/toolbox/matlab/specgraph/usev6plotapi.m
Copy to new window for comparing multiple runs

Parents (calling functions)

Function NameFunction TypeCalls
parseplotapifunction2
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
28
args = args(1:end-2);
20.002 s24.6%
18
res = ~isempty(getappdata(0,'U...
20.001 s13.7%
27
filename = args{end};
20.001 s13.4%
24
if (narg>1 && isa(a...
20.001 s11.8%
33
if narg>0 && isa(ar...
20.001 s11.5%
All other lines  0.002 s24.9%
Totals  0.006 s100% 
Children (called functions)
No children
Code Analyzer results
No Code Analyzer messages.
Coverage results
Show coverage for parent directory
Total lines in function70
Non-code lines (comments, blank lines)21
Code lines (lines that can run)49
Code lines that did run13
Code lines that did not run36
Coverage (did run/can run)26.53 %
Function listing
time 
Calls 
 line
   1 
function [res,args]=usev6plotapi(varargin)
   2 
% This undocumented function may be removed in a future release
   3 

   4 
%USEV6PLOTAPI determine plotting version
   5 
%  [V6,ARGS] = USEV6PLOTAPI(ARG1,ARG2,...) checks to see if the V6-compatible
   6 
%  plotting API should be used and return true or false in V6 and any
   7 
%  remaining arguments in ARGS.
   8 

   9 
%  if ARG1 is 'v6' then strip it off, issue warning, and return false
  10 
%  if ARG1 is 'group' then strip it off and return false
  11 
%  else return false
  12 
%  if ARG1 is 'defaultv6', then strip it off, issue warning, and return false
  13 
%  unless ARG2 is 'group', then strip it off too and return false.
  14 

  15 
%   Copyright 1984-2014 The MathWorks, Inc.
  16 

  17 
% defaults
< 0.001 
      2 
  18
res = ~isempty(getappdata(0,'UseV6PlotAPI')); 
< 0.001 
      2 
  19
args = varargin; 
< 0.001 
      2 
  20
narg = nargin; 
< 0.001 
      2 
  21
filename = ''; 
  22 

  23 
% strip off mfilename arguments if necessary.
  0.002 
      2 
  24
if (narg>1 && isa(args{end-1},'char')) && ... 
      2 
  25
        strcmp(args{end-1},'-mfilename') && ... 
      2 
  26
        isa(args{end},'char') 
< 0.001 
      2 
  27
    filename = args{end}; 
  0.002 
      2 
  28
    args = args(1:end-2); 
< 0.001 
      2 
  29
    narg = narg-2; 
< 0.001 
      2 
  30
end 
  31 

  32 
% Parse the remaining arguments
< 0.001 
      2 
  33
if narg>0 && isa(args{1},'char') 
  34 
    if strcmp(args{1},'group')
  35 
        res = false;
  36 
        args = args(2:end);
  37 
    elseif strcmp(args{1},'v6')
  38 
        res = false;
  39 
        args = args(2:end);
  40 
        warnv6args(filename);
  41 
    elseif strcmp(args{1},'defaultv6')
  42 
        if narg>1 && isa(args{2},'char')
  43 
            if strcmp(args{2},'group')
  44 
                res = false;
  45 
                args = args(3:end);
  46 
            elseif strcmp(args{2},'v6')
  47 
                res = false;
  48 
                args = args(3:end);
  49 
                warnv6args(filename);
  50 
            else
  51 
                res = false;
  52 
                args = args(2:end);
  53 
                warnv6args(filename);
  54 
            end
  55 
        else
  56 
            res = false;
  57 
            args = args(2:end);
  58 
            warnv6args(filename);
  59 
        end
  60 
    elseif (narg == 1) && strcmp(args{1},'on')
  61 
        if isempty(getappdata(0,'UseV6PlotAPI'))
  62 
            warning(message('MATLAB:usev6plotapi:DeprecatedV6Compatibility'))
  63 
            setappdata(0,'UseV6PlotAPI','on');
  64 
        end
  65 
    elseif (narg == 1) && strcmp(args{1},'off')
  66 
        if isappdata(0,'UseV6PlotAPI')
  67 
            rmappdata(0,'UseV6PlotAPI');
  68 
        end
  69 
    end
< 0.001 
      2 
  70
end 

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