Error with wavwrite (R2011b Linux)
조회 수: 2 (최근 30일)
이전 댓글 표시
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);
A wav is generated but corrupted...
Thanks a lot for your help,
Martin
댓글 수: 1
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 Center 및 File Exchange에서 Audio and Video Data에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!