MATLAB: Hi. Does anyone know how to convert mpeg to wav

mpegwav

For an assignment of mine I am asked: Random numbers can be used to simulate the noise we hear as static on the radio. By adding this noise to data file that store music, we can study the effect of static on recordings. Create a M-file (script) where you upload a sound file, after that, add noise and check how it impacts the signal.

Best Answer

I don't know how to strip the audio track off a MPEG file using MATLAB. You can do that from the web site: http://peggo.tv/
But attached is a demo where I use rand() to add noise to an audio signal (a .wav file) read in with audioread(). Adapt as needed, for example use inputdlg() to ask the user how much noise they want, or calculate signal to noise ratio, or whatever "checking the impact" means to you.