This is a static copy of a profile report

Home

mustBeNumericOrLogical (Calls: 3, Time: 0.000 s)
Generated 04-Jun-2021 04:11:07 using performance time.
function in file C:\Program Files\MATLAB\R2020b\toolbox\matlab\validators\mustBeNumericOrLogical.m
Copy to new window for comparing multiple runs

Parents (calling functions)

Function NameFunction TypeCalls
...hImportOptionsSpreadsheet.executeImplclass method2
...;ExecutableFunction.validateArgumentsclass method1
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
11
if ~isnumeric(A) && ~i...
30.000 s44.7%
14
end
30.000 s0.9%
13
end
30.000 s0.2%
All other lines  0.000 s54.3%
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 function14
Non-code lines (comments, blank lines)10
Code lines (lines that can run)4
Code lines that did run3
Code lines that did not run1
Coverage (did run/can run)75.00 %
Function listing
time 
Calls 
 line
   1 
function mustBeNumericOrLogical(A)
   2 
%MUSTBENUMERICORLOGICAL Validate that value is numeric or logical
   3 
%   MUSTBENUMERICORLOGICAL(A) throws an error if A contains values that are
   4 
%   not numeric or logical. MATLAB calls isnumeric to determine if A is
   5 
%   numeric and calls islogical to determine if A is logical.
   6 
%
   7 
%   See also: ISNUMERIC, ISLOGICAL.
   8 
        
   9 
%   Copyright 2016-2020 The MathWorks, Inc.
  10 

< 0.001 
      3 
  11
    if ~isnumeric(A) && ~islogical(A) 
  12 
        throwAsCaller(createValidatorException('MATLAB:validators:mustBeNumericOrLogical'));
< 0.001 
      3 
  13
    end 
< 0.001 
      3 
  14
end 

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