Wavwrite doesn't work

I have these two simple lines of code:
[x1,fs,nbits] = wavread('old.wav');
%Get only one channel - the first one
%x1 = x1(:,1);
wavwrite(x1,fs,nbits,'new.wav');
at the end I basically wanted to do something with the input (old.wav) samples before writing it to new.wav, but this itself doesn't work. I dont see a new.wav getting created, when I have the file already, nor do I see it getting overwritten with the contents of the old.wav file. Please help!!

답변 (1개)

Wayne King
Wayne King 2011년 11월 13일

0 개 추천

Are you getting any error messages in the command line?
Enter
>>pwd
at the command prompt. Is this the same place that you are trying to read the .wav file from?

카테고리

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

질문:

2011년 11월 13일

Community Treasure Hunt

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

Start Hunting!

Translated by