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 Hay1.1650 1.6961 -1.44620.6268 0.0591 -0.70120.0751 1.7971 1.24600.3516 0.2641 -0.6390-0.6965 0.8717 0.5774
clc,disp,format(compactoption),home
(c) Copyright 1994 by The MathWorks, Inc.