A signal’s waveform is a plot of its amplitude over time. This type of visualization is very common, used in almost every digital audio workstation (DAW).
In some situations, it is helpful to visualize the time units of samples. In other situations, the time units of seconds is preferred. In either case, the waveform looks identical except the scale of the horizontal axis is changed.
To control the scale of the horizontal axis, the following syntax can be used for the built-in function:
x – an array defining the time value of each sample of the signal (equal in length to the signal)
y – the array containing the signal’s sample values