|MATLAB Function Reference|
Display text or array
displays an array, without printing the array name. If
X contains a text string, the string is displayed.
Another way to display an array on the screen is to type its name, but this prints a leading
=," which is not always desirable.
disp does not display empty arrays.
One use of
disp in an M-file is to display a matrix with column labels:
which results in