This is a static copy of a profile report

Home

ismissingKernel>arraySwitch (Calls: 2, Time: 0.000 s)
Generated 04-Jun-2021 04:11:10 using performance time.
nested function in file C:\Program Files\MATLAB\R2020b\toolbox\matlab\datafun\+matlab\+internal\+math\ismissingKernel.m
Copy to new window for comparing multiple runs

Parents (calling functions)

Function NameFunction TypeCalls
ismissingKernelfunction2
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
53
if isfloat(A)
20.000 s48.4%
54
IA = isnan(A);
20.000 s1.0%
85
end
20.000 s0.3%
84
end
20.000 s0.1%
82
if AinTable
20.000 s0.1%
All other lines  0.000 s50.2%
Totals  0.000 s100% 
Children (called functions)
No children
Code Analyzer results
Line numberMessage
63To support string in addition to cellstr, include a call to 'isstring'.
Coverage results
Show coverage for parent directory
Total lines in function35
Non-code lines (comments, blank lines)3
Code lines (lines that can run)32
Code lines that did run6
Code lines that did not run26
Coverage (did run/can run)18.75 %
Function listing
time 
Calls 
 line
  51 
function IA = arraySwitch(A,AinTable)
  52 
% Used for 1-input ismissing for arrays or table variables
< 0.001 
      2 
  53
if isfloat(A) 
< 0.001 
      2 
  54
    IA = isnan(A); 
  55 
elseif builtin('ischar',A)
  56 
    if ~AinTable
  57 
        IA = A == ' '; % blank char
  58 
    else
  59 
        % Convert to string via helper for correct N-D char array behavior.
  60 
        A = matlab.internal.math.charRows2string(A);
  61 
        IA = ismissing(A);
  62 
    end
  63 
elseif iscellstr(A)
  64 
    IA = cellfun('isempty',A);
  65 
elseif builtin('isstring',A)
  66 
    IA = ismissing(A);
  67 
elseif iscategorical(A)
  68 
    IA = isundefined(A);
  69 
elseif isdatetime(A)
  70 
    IA = isnat(A);
  71 
elseif (isduration(A) || iscalendarduration(A))
  72 
    IA = isnan(A);
  73 
elseif (isinteger(A) || islogical(A))
  74 
    IA = false(size(A));
  75 
else
  76 
    if AinTable
  77 
        IA = false(size(A)); % Ignore table variables of unsupported types
  78 
    else
  79 
        error(message('MATLAB:ismissing:FirstInputInvalid'));
  80 
    end
< 0.001 
      2 
  81
end 
< 0.001 
      2 
  82
if AinTable 
  83 
    IA = collapseIntoLogicalColumn(IA);
< 0.001 
      2 
  84
end 
< 0.001 
      2 
  85
end 

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