This is a static copy of a profile report

Home

isCharOrString (Calls: 70, Time: 0.004 s)
Generated 16-Jul-2020 17:08:38 using performance time.
function in file /Applications/MATLAB_R2020a.app/toolbox/matlab/specgraph/+matlab/+graphics/+internal/isCharOrString.m
Copy to new window for comparing multiple runs

Parents (calling functions)

Function NameFunction TypeCalls
colormapfunction6
saveasfunction12
print>LocalCreatePrintJobsubfunction36
surffunction6
parseparamsfunction6
gridfunction2
rulerFunctionsfunction2
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
15
out = (ischar(args) &&...
700.001 s17.4%
16
end
700.000 s1.8%
All other lines  0.003 s80.9%
Totals  0.004 s100% 
Children (called functions)
No children
Code Analyzer results
No Code Analyzer messages.
Coverage results
Show coverage for parent directory
Total lines in function16
Non-code lines (comments, blank lines)14
Code lines (lines that can run)2
Code lines that did run2
Code lines that did not run0
Coverage (did run/can run)100.00 %
Function listing
time 
Calls 
 line
   1 
function out = isCharOrString(args)
   2 
% This undocumented function may be removed in a future release.
   3 

   4 
%   isCharOrString -  Determines whether an input is a character vector or a MATLAB
   5 
%   string scalar.  
   6 
%   isCharOrString(s) Returns 1 if S is a character vector or a string.
   7 
%                     Returns 1 for empty character vector and empty string.
   8 
%                     Returns 0 for ['Hello'; 'JellO'; 'Moose'], as it is a
   9 
%                     2-D input. 
  10 
%                     Returns 0 for ["Hello", "Hello", "Moose"], as it is a
  11 
%                     string vector. 
  12 
% 
  13 
%   Copyright 2017-2019 MathWorks, Inc.
  14 

< 0.001 
     70 
  15
out = (ischar(args) && (isvector(args)|| isempty(args))) || (isstring(args) && isscalar(args)); 
< 0.001 
     70 
  16
end 

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