MATLAB: Playing an under-sampled .wav music in matlab

Signal Processing Toolboxurgent

Hello all,
I've undersampled a .wav music and would like to play it in Matlab to hear the effect of aliasing. Can you please guide me?
Thank you.

Best Answer

  • You can use wavread to read in your wave file and then use audioplayer to play it. Or if you have the downsampled music already in a variable, you can directly pass it to audioplayer. See the following documentation and there is an example
    alternatively, you can launch the doc from MATLAB
    doc audioplayer
    doc wavread
    HTH