Error with wavwrite (R2011b Linux)

조회 수: 2 (최근 30일)
Martin
Martin 2012년 7월 17일
Hello,
I have this error with the wavwrite function that I don't understand... Could you please help me?
>> wavwrite(mix,Fs,bit,'master.wav'); Error using fclose Invalid file identifier. Use fopen to generate a valid file identifier.
Error in wavwrite (line 143) fclose(fid);
The mix data format is double Fs =44100 and bit=16
A wav is generated but corrupted...
Thanks a lot for your help,
Martin
  댓글 수: 1
Daniel Shub
Daniel Shub 2012년 7월 17일
To figure out what is going on, we need more than just the last bit of the error. If you look at WAVWRITE with type wavwrite what you will see is that line 143 is part of a try-catch block. There is some other problem that causes WAVWRITE to crash before trying to close the file. It is not clear to me how fid can be invalid since OpenWaveWrite should give you a different error. Try using lasterror, echo or the debugger to get more information about the error.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Audio and Video Data에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by