blanks(n)
blanks(n)
creates a string of n
blanks. Use blanks
to format data and labels for use with the disp
command.
disp(blanks(n)')
moves the cursor down n
lines.
blanks
and disp
to display a matrix with column labels:
disp([blanks(5) 'Corn' blanks(6) 'Oats' blanks(6) 'Hay'])
disp(randn(5,3))
Corn Oats Hay
1.1650 1.6961 -1.4462
0.6268 0.0591 -0.7012
0.0751 1.7971 1.2460
0.3516 0.2641 -0.6390
-0.6965 0.8717 0.5774
clc
,disp
,format
(compact
option),home
(c) Copyright 1994 by The MathWorks, Inc.