disp(X)displays a matrix, without printing the matrix name. If
Xcontains a text string, the string is displayed.
Another way to display a matrix on the screen is to type its name, but this prints a leading
"X =," which is not always desirable.
dispin an M-file is to display a matrix with column labels:
which results in
disp(' Corn Oats Hay')
This shows the use of
Corn Oats Hay
0.2113 0.8474 0.2749
0.0820 0.4524 0.8807
0.7599 0.8075 0.6538
0.0087 0.4832 0.4899
0.8096 0.6135 0.7741
dispon both data and text strings.
(c) Copyright 1994 by The MathWorks, Inc.