Wavwrite doesn't work
Show older comments
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!!
Answers (1)
Wayne King
on 13 Nov 2011
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?
Categories
Find more on MATLAB 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!