This is a static copy of a profile report

Home

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

Parents (calling functions)

Function NameFunction TypeCalls
...ategorical>categorical.categoricalclass method6
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
6
if isscalar(paramVal) &&am...
60.000 s56.1%
10
end
60.000 s0.6%
7
paramVal = logical(paramVal);
60.000 s0.2%
All other lines  0.000 s43.1%
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 function10
Non-code lines (comments, blank lines)5
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 paramVal = validateLogical(paramVal,paramName)
   2 
%VALIDATELOGICAL Validate a scalar logical input.
   3 

   4 
%   Copyright 2012-2014 The MathWorks, Inc.
   5 

< 0.001 
      6 
   6
if isscalar(paramVal) && (islogical(paramVal) || isnumeric(paramVal)) 
< 0.001 
      6 
   7
    paramVal = logical(paramVal); 
   8 
else
   9 
    error(message('MATLAB:table:InvalidLogicalVal', paramName));
< 0.001 
      6 
  10
end 

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