having errors while converting .mat file to .wav file
显示 更早的评论
x=load('read.mat');
>> f=fieldnames(x);
>> wavwrite(x.(f{1}),8000,'foo.wav')
Warning: Data clipped during write to file:foo.wav
> In wavwrite>PCM_Quantize at 247
In wavwrite>write_wavedat at 267
In wavwrite at 112
>>
采纳的回答
更多回答(1 个)
Daniel Shub
2012-5-9
0 个投票
The error means that at least for one sample either x<-1 or x>1.
6 个评论
tammna abid
2012-5-9
Daniel Shub
2012-5-9
See my edit
tammna abid
2012-5-9
tammna abid
2012-5-9
Daniel Shub
2012-5-9
Thank you equals a vote. I wasn't suggesting you ask in that thread, but rather, that the answer was in the thread.
tammna abid
2012-5-11
类别
在 帮助中心 和 File Exchange 中查找有关 MATLAB 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!