Documentation

blanks

Create character array of blanks

Syntax

blanks(n)

Description

blanks(n) returns an array of n space characters.

Examples

blanks is useful with the display function. For example,

disp(['xxx' blanks(20) 'yyy'])

displays twenty spaces between the character arrays 'xxx' and 'yyy'.

disp(blanks(n)') moves the cursor down n lines.

See Also

| |

Introduced before R2006a

Was this topic helpful?