This is a static copy of a profile report

Home

isStringScalar (Calls: 62, Time: 0.004 s)
Generated 16-Jul-2020 17:09:59 using performance time.
function in file /Applications/MATLAB_R2020a.app/toolbox/matlab/strfun/isStringScalar.m
Copy to new window for comparing multiple runs

Parents (calling functions)

Function NameFunction TypeCalls
...char(x))&&strcmpi('parent',x)anonymous function62
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
25
end
620.000 s1.1%
21
narginchk(1,1);
620.000 s0.4%
23
tf = isstring(s) && is...
620.000 s0.4%
All other lines  0.004 s98.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 function25
Non-code lines (comments, blank lines)22
Code lines (lines that can run)3
Code lines that did run3
Code lines that did not run0
Coverage (did run/can run)100.00 %
Function listing
time 
Calls 
 line
   1 
function tf = isStringScalar(s)
   2 
%isStringScalar Determine whether input is a string array with one element
   3 
%   isStringScalar(S) returns 1 (true) if S is a string scalar and 0
   4 
%   (false) otherwise.  This is equivalent to:
   5 
%
   6 
%                   isstring(S) && isscalar(S)
   7 
%
   8 
%   Examples:
   9 
%       isStringScalar("Smith")                       % returns 1
  10 
%
  11 
%       isStringScalar('Mary Jones')                  % returns 0
  12 
%
  13 
%       isStringScalar(["Smith","Burns","Jones"])     % returns 0
  14 
%
  15 
%   See also STRING, ISSTRING, ISSCALAR, ISCHAR, ISCELLSTR,
  16 
%   convertCharsToStrings, convertStringsToChars.
  17 

  18 
%   Copyright 2017 The MathWorks, Inc.
  19 
%#codegen
  20 

< 0.001 
     62 
  21
narginchk(1,1); 
  22 

< 0.001 
     62 
  23
tf = isstring(s) && isscalar(s); 
  24 

< 0.001 
     62 
  25
end 

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