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!