| 查看: 617 | 回复: 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)); |
» 猜你喜欢
有没有人能给点建议
已经有5人回复
假如你的研究生提出不合理要求
已经有12人回复
全日制(定向)博士
已经有5人回复
萌生出自己或许不适合搞科研的想法,现在跑or等等看?
已经有4人回复
Materials Today Chemistry审稿周期
已经有4人回复
参与限项
已经有3人回复
对氯苯硼酸纯化
已经有3人回复
所感
已经有4人回复
要不要辞职读博?
已经有7人回复
北核录用
已经有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












回复此楼