| 查看: 664 | 回复: 3 | |||
| 当前主题已经存档。 | |||
炎海飞雪木虫 (正式写手)
|
[交流]
【求助】有关SNR的
|
||
|
大家帮忙看看,我设的SNR=2,但是随后用snrs=20*log10(norm(x)/norm(s-x))计算的却相差很大,是怎么回事?公式用错了,还是我对wnoise函数理解的 有问题? 附代码: %测试数据的选取 snr =2; init = 2055615866; % Generate original signal and a noisy version adding % a standard Gaussian white noise. xref is the origin signal,and x % contains the same test vector corrupted by additive Gaussian white noise N(0,1). % Then, XN has a signal-to-noise ratio of SNR = (SQRT_SNR)2 [x,signal] = wnoise(3,11,snr,init);%generate the signal containing 2^11 dots.,x is the origin singnal and signal is the noising signal. s=signal; N=2^11; wname='db7'; jN=6; %分解的层数 [c,l]=wavedec(s,jN,wname); snrs=20*log10(norm(x)/norm(s-x)); |
» 猜你喜欢
一志愿北京化工大学 070300 学硕 336分 求调剂
已经有4人回复
352求调剂
已经有3人回复
一志愿东华大学化学070300,求调剂
已经有8人回复
277材料科学与工程080500求调剂
已经有7人回复
317求调剂
已经有18人回复
293求调剂
已经有5人回复
280分求调剂 一志愿085802
已经有7人回复
0854电子信息求调剂
已经有3人回复
263求调剂
已经有4人回复
石河子大学(211、双一流)硕博研究生长期招生公告
已经有3人回复
|
[X,XN] = wnoise(FUN,N,SQRT_SNR) returns a test vector X as above, rescaled such that std(X) = SQRT_SNR. The returned vector XN contains the same test vector corrupted by additive Gaussian white noise N(0,1). Then, XN has a signal-to-noise ratio of SNR = (SQRT_SNR)2. SNR, the ratio of signal power to noise power 自己多查查matlab的帮助,那可是一个数学百科全书 |
2楼2009-05-16 11:38:58
炎海飞雪
木虫 (正式写手)
- 应助: 2 (幼儿园)
- 金币: 4419.1
- 红花: 2
- 帖子: 719
- 在线: 368.7小时
- 虫号: 430826
- 注册: 2007-08-11
- 性别: GG
- 专业: 机构学与机器人
3楼2009-05-16 14:33:50
炎海飞雪
木虫 (正式写手)
- 应助: 2 (幼儿园)
- 金币: 4419.1
- 红花: 2
- 帖子: 719
- 在线: 368.7小时
- 虫号: 430826
- 注册: 2007-08-11
- 性别: GG
- 专业: 机构学与机器人
4楼2009-05-17 15:47:56













回复此楼