converting matrix with signal data to a .wav file

1 view (last 30 days)
x=0.9.*[zeros(1,4600) ones(1,200) zeros(1,300) ones(1,200) zeros(1,4700)];
wavwrite(x,10000,8,filename)
trying to create a matrix of signal data (1's and 0's to create an amplitude modulated signal) which can be converted to a .wav file. when I generate the .wav file and use read .wav file function to see the plot, the signal is not distorted. However, when I play the wav file from my computer (which is rigged to an oscilloscope) it is so distorted that its unrecognizable

Answers (0)

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!