what is the noise bandwidth considered while calcuating SNR ; for func of the form .. r = snr(x,fs,n)

조회 수: 2 (최근 30일)
what is the noise bandwidth considered while calcuating SNR ; for func of the form .. r = snr(x,fs,n)

채택된 답변

Devineni Aslesha
Devineni Aslesha 2019년 8월 27일
The noise bandwidth is equal to the sampling frequency. This can be obtained by plotting the power spectral density of noise.
Use the below code for reference.
rng default
Fi = 2500;
Fs = 48e3;
N = 1024;
x = sin(2*pi*Fi/Fs*(1:N)) + 0.00001*randn(1,N);
w = kaiser(numel(x),38);
[Sxx, F] = periodogram(x,w,numel(x),Fs,'centered');
plot(F,10*log10(Sxx));
xlabel('Frequency (Hz)');
ylabel('Power/Frequency(dB/Hz)');
title('Power Spectral Density');
In the above plot, noise bandwidth = Fs
Doc Link:
  댓글 수: 2
Veeresh S
Veeresh S 2019년 9월 3일
Thanks for the reply Devineni Aslesha.
If i get the SNR for the same i'll see the following tmp1.PNG
which shows the freq componets upto fs/2 .
So , which is it fs or fs/2 ?
Devineni Aslesha
Devineni Aslesha 2019년 9월 4일
In the given plot, noise bandwidth is equal to fs. Eventhough, the frequency components are shown upto fs or fs/2, the only difference it makes is a single sided or double sided spectrum respectively. In both cases, noise bandwidth is equal to fs.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Spectral Measurements에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by