This is a static copy of a profile report

Home

blanks (Calls: 5, Time: 0.001 s)
Generated 16-Jul-2020 17:08:31 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
strcatfunction5
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
17
b = repmat(' ', 1, n);
50.000 s41.4%
11
if (isnumeric(n) || islogical(...
50.000 s31.9%
13
elseif ~isscalar(n)
50.000 s0.1%
15
end
50.000 s0.1%
All other lines  0.000 s26.4%
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 
      5 
  11
if (isnumeric(n) || islogical(n)) && isempty(n) 
  12 
    n = 0;
< 0.001 
      5 
  13
elseif ~isscalar(n) 
  14 
    error(message("MATLAB:NonScalarInput"))
< 0.001 
      5 
  15
end 
  16 

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

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