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: plot(y)


Input Variable:

y – an array to values



Next, let’s consider several different ways to customize the plot function. Additionally, we can use the plot function to visualize an audio signal’s waveform.

Receive Updates

No spam guarantee.