A simple way to visualize the data in an array is to use the built-in, “plot” function for Matlab. When this function is called, a new figure window will open and display a two-dimensional axes. The value of elements in the array are plotted on the vertical axis versus the element number along the horizontal axis.
The basic syntax for using the function is the following:
y – an array to values