This is a static copy of a profile report

Home

Function details for blanksThis is a static copy of a profile report

Home

blanks (Calls: 1, Time: 0.000 s)
Generated 19-Jun-2021 04:39:08 using performance time.
function in file /nfs/linux/matlab-2019b/toolbox/matlab/strfun/blanks.m
Copy to new window for comparing multiple runs

Parents (calling functions)

Function NameFunction TypeCalls
strcatfunction1
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
17
b = repmat(' ', 1, n);
10.000 s53.8%
11
if (isnumeric(n) || islogical(...
10.000 s21.5%
13
elseif ~isscalar(n)
10.000 s11.5%
15
end
10.000 s2.3%
All other lines  0.000 s10.8%
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 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 
      1 
  11
if (isnumeric(n) || islogical(n)) && isempty(n) 
  12 
    n = 0;
< 0.001 
      1 
  13
elseif ~isscalar(n) 
  14 
    error(message("MATLAB:NonScalarInput"))
< 0.001 
      1 
  15
end 
  16 

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

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