Error with wavwrite (R2011b Linux)
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
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 comentario
Daniel Shub
el 17 de Jul. de 2012
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.
Respuestas (0)
Ver también
Categorías
Más información sobre Audio and Video Data en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!