This is a static copy of a profile report

Home

blanks (Calls: 6, Time: 0.001 s)
Generated 18-Jul-2020 08:10:35 using performance time.
function in file /Applications/MATLAB_R2020a.app/toolbox/matlab/strfun/blanks.m
Copy to new window for comparing multiple runs

Parents (calling functions)

Function NameFunction TypeCalls
strcatfunction6
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
17
b = repmat(' ', 1, n);
60.000 s38.0%
11
if (isnumeric(n) || islogical(...
60.000 s34.8%
15
end
60.000 s0.2%
13
elseif ~isscalar(n)
60.000 s0.1%
All other lines  0.000 s26.9%
Totals  0.001 s100% 
Children (called functions)
No children
Code Analyzer results
No Code Analyzer messages.
Coverage results
Show coverage for parent directory
Total lines in function17
Non-code lines (comments, blank lines)11
Code lines (lines that can run)6
Code lines that did run4
Code lines that did not run2
Coverage (did run/can run)66.67 %
Function listing
time 
Calls 
 line
   1 
function b = blanks(n)
   2 
%BLANKS Character vector of blanks
   3 
%   BLANKS(n) returns a character vector of n blanks.
   4 
%   Use with DISP, e.g.  DISP(['xxx' BLANKS(20) 'yyy']).
   5 
%   DISP(BLANKS(n)') moves the cursor down n lines.
   6 
%
   7 
%   See also NEWLINE, DEBLANK, PAD, STRIP, STRING, CHAR.
   8 

   9 
%   Copyright 1984-2018 The MathWorks, Inc.
  10 

< 0.001 
      6 
  11
if (isnumeric(n) || islogical(n)) && isempty(n) 
  12 
    n = 0;
< 0.001 
      6 
  13
elseif ~isscalar(n) 
  14 
    error(message("MATLAB:NonScalarInput"))
< 0.001 
      6 
  15
end 
  16 

< 0.001 
      6 
  17
b = repmat(' ', 1, n); 

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