This is a static copy of a profile report

Home

isCharString (Calls: 89, Time: 0.002 s)
Generated 04-Jun-2021 04:11:14 using performance time.
function in file C:\Program Files\MATLAB\R2020b\toolbox\matlab\datatypes\shared\matlab_datatypes\+matlab\+internal\+datatypes\isCharString.m
Copy to new window for comparing multiple runs

Parents (calling functions)

Function NameFunction TypeCalls
makeUniqueStringsfunction49
...Strings>validateExclStrOrElemToChksubfunction32
tabular.tabular>tabular.countVarInputsclass method8
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
11
if nargin < 2 || allowEmpty
890.001 s51.7%
12
tf = ischar(s) && (isr...
890.000 s5.1%
15
end
890.000 s1.2%
All other lines  0.001 s42.0%
Totals  0.002 s100% 
Children (called functions)
No children
Code Analyzer results
No Code Analyzer messages.
Coverage results
Show coverage for parent directory
Total lines in function15
Non-code lines (comments, blank lines)10
Code lines (lines that can run)5
Code lines that did run3
Code lines that did not run2
Coverage (did run/can run)60.00 %
Function listing
time 
Calls 
 line
   1 
function tf = isCharString(s,allowEmpty)
   2 
%ISCHARSTRING True for a string
   3 
%   T = ISCHARSTRING(S) returns true if S is a 1xN character vector
   4 
%   for N >= 0, or the 0x0 char array ''.
   5 
%
   6 
%   T = ISCHARSTRING(S,FALSE) returns true only if S is a non-empty
   7 
%   character vector.
   8 

   9 
%   Copyright 2012-2020 The MathWorks, Inc.
  10 

  0.001 
     89 
  11
if nargin < 2 || allowEmpty 
< 0.001 
     89 
  12
    tf = ischar(s) && (isrow(s) || isequal(s,'')); 
  13 
else
  14 
    tf = ischar(s) && isrow(s) && ~all(isspace(s));
< 0.001 
     89 
  15
end 

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