converting matrix with signal data to a .wav file

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

답변 (0개)

카테고리

도움말 센터File Exchange에서 Data Type Conversion에 대해 자세히 알아보기

태그

질문:

2012년 7월 24일

Community Treasure Hunt

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

Start Hunting!

Translated by