This is a static copy of a profile report

Home

isCharString (Calls: 16, Time: 0.000 s)
Generated 16-Jul-2020 17:09:55 using performance time.
function in file /Applications/MATLAB_R2020a.app/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
makeUniqueStringsfunction8
...Strings>validateExclStrOrElemToChksubfunction8
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
11
if nargin < 2 || allowEmpty
160.000 s48.5%
15
end
160.000 s2.1%
12
tf = ischar(s) && (isr...
160.000 s0.6%
All other lines  0.000 s48.8%
Totals  0.000 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)  %#codegen
   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-2019 The MathWorks, Inc.
  10 

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

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