converting matrix with signal data to a .wav file
Show older comments
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
1 Comment
Walter Roberson
on 24 Jul 2012
Star Strider did caution you about that.... http://www.mathworks.co.uk/matlabcentral/answers/44226#answer_54258
Answers (0)
Categories
Find more on Data Type Conversion in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!