MATLAB爱好者论坛-LabFans.com

MATLAB爱好者论坛-LabFans.com (https://www.labfans.com/bbs/index.php)
-   MATLAB论坛 (https://www.labfans.com/bbs/forumdisplay.php?f=6)
-   -   [MATLAB信号处理] 怎样用wavwrite保存chirp产生的数据? (https://www.labfans.com/bbs/showthread.php?t=20952)

gjsgjs 2016-05-20 15:37

怎样用wavwrite保存chirp产生的数据?
 
我用chirp函数产生了扫频信号,用sound函数播放,想把chirp产生的数据通过wavwrite保存成.wav文件,会报错,求教是怎么回事,怎么改?
clc;
Fs=8192;
t = 0:1/Fs:1;
y = chirp(t,500,1,3000);
wavwrite(y,Fs,'E:\mm\create');
sound(y,Fs,16);

以上是我的代码
————————————————————————————————
以下是报错的信息:
Warning: Data clipped during write to file:create
> In wavwrite>PCM_Quantize at 293
In wavwrite>write_wavedat at 309
In wavwrite at 138
In Untitled7 at 5


所有时间均为北京时间。现在的时间是 14:41

Powered by vBulletin
版权所有 ©2000 - 2025,Jelsoft Enterprises Ltd.