This is a static copy of a profile report

Home

Function details for convertStringToCharArgsThis is a static copy of a profile report

Home

convertStringToCharArgs (Calls: 6, Time: 0.001 s)
Generated 01-May-2020 20:23:10 using performance time.
function in file /Applications/MATLAB_R2018a.app/toolbox/matlab/specgraph/+matlab/+graphics/+internal/convertStringToCharArgs.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
18
[args{:}] = convertStringsToCh...
60.000 s59.0%
15
elseif iscell(args)
60.000 s13.7%
21
end
60.000 s1.4%
19
end
60.000 s0.1%
12
if isstring(args)
60.000 s0.1%
All other lines  0.000 s25.7%
Totals  0.001 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 
      6 
  12
if isstring(args) 
  13 
    % convertStringsToChars - Converts a string array to a cell array of char vectors.
  14 
    args = convertStringsToChars(args);
< 0.001 
      6 
  15
elseif iscell(args) 
  16 
    % The following converts a cell array containing string arrays to a
  17 
    % cell array of char arrays.
< 0.001 
      6 
  18
    [args{:}] = convertStringsToChars(args{:}); 
< 0.001 
      6 
  19
end 
  20 

< 0.001 
      6 
  21
end