How does MATLAB sound function work?
Description. sound( y ) sends audio signal y to the speaker at the default sample rate of 8192 Hz. sound( y , Fs ) sends audio signal y to the speaker at sample rate Fs . sound( y , Fs , nBits ) uses nBits bits per sample for audio signal y .
How do you plot a sound signal in MATLAB?
Plot Audio Data
Create a vector t the same length as y , that represents elapsed time. t = 0:seconds(1/Fs):seconds(info. Duration); t = t(1:end-1); Plot the audio data as a function of time.