This is a static copy of a profile report

Home

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

Parents (calling functions)

Function NameFunction TypeCalls
xlabelfunction12
ylabelfunction12
print>LocalCreatePrintJobsubfunction12
surffunction2
titlefunction10
zlabelfunction2
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
18
[args{:}] = convertStringsToCh...
500.003 s79.4%
15
elseif iscell(args)
500.000 s3.9%
21
end
500.000 s1.1%
12
if isstring(args)
500.000 s0.3%
19
end
500.000 s0.1%
All other lines  0.001 s15.1%
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 function21
Non-code lines (comments, blank lines)15
Code lines (lines that can run)6
Code lines that did run5
Code lines that did not run1
Coverage (did run/can run)83.33 %
Function listing
time 
Calls 
 line
   1 
function args = convertStringToCharArgs(args)
   2 
% This undocumented function may be removed in a future release.
   3 

   4 
% This function converts a cell array containing strings values, or a string
   5 
% array, to a cell array of character vectors. To convert a scalar string to a
   6 
% character vector use the char function. This function is necessary
   7 
% because various functions (like set, get, etc.) do not currently
   8 
% accept strings.
   9 

  10 
% Copyright 2017 MathWorks, Inc.
  11 

< 0.001 
     50 
  12
if isstring(args) 
  13 
    % convertStringsToChars - Converts a string array to a cell array of char vectors.
  14 
    args = convertStringsToChars(args);
< 0.001 
     50 
  15
elseif iscell(args) 
  16 
    % The following converts a cell array containing string arrays to a
  17 
    % cell array of char arrays.
  0.003 
     50 
  18
    [args{:}] = convertStringsToChars(args{:}); 
< 0.001 
     50 
  19
end 
  20 

< 0.001 
     50 
  21
end