blanks

Returns a string which consists of n spaces.

Syntax

R = blanks(n)

Inputs

n
Number of spaces in the resulting output string.
Type: Finite, nonnegative integer

Outputs

R
Type: string

Example

Create a string with ten spaces:

R = blanks(10)
R = 
vardetail('R')
R scope Base type string
size(R)
ans = [Matrix] 1 x 2
1 10