HOW CAN I CALCULATE THE SIGNAL TO NOISE RATIO(SNR) OF A CHIRP SIGNAL

조회 수: 9 (최근 30일)
raj
raj 2012년 4월 16일
편집: MathWorks Support Team 2021년 7월 7일
I have a signal which is comprised of 4 chirp signals and an additive noise with the same sampling frequency and size is generated now i need to calculate the SNR of the signal and noise . Also if I am correct to vary the signal to noise ratio is it ok if I vary the amplitudes of chirp signals and also the noise by multiplying it with a factor : ex:
noise = randn(size(t));
where t = 0:1e-4:1;
and to increase the noise
{new noise = 2*noise ;}
is this correct?? and to increase the amplitudes of the signal is this the way to change the signal to noise ratio:
y3 = 5* chirp(t,600,t1,800,'linear');
​​​​​​​y4 = 3.5*chirp(t,900,t1,980,'linear');

채택된 답변

Geoff
Geoff 2021년 7월 7일
편집: MathWorks Support Team 2021년 7월 7일
NR = Psignal / Pnoise = (Asignal / Anoise)^2
Where P is power, and A is amplitude. I would calculate the RMS amplitudes and use those in the above formula.
RMS means Root-Mean-Square. That is, you square your signal, calculate the mean of that, and take the square root. Just define a wee anonymous function for clarity:
RMS = @(x) sqrt(mean(x.^2));
Now you can compute your ratio like so:
RMS = @(x) sqrt(mean(x.^2));
  댓글 수: 10
Lesiba Amos
Lesiba Amos 2020년 9월 28일
Lol why is the RMS(x)/RMS(n) squared?
Rohan Patni
Rohan Patni 2020년 10월 3일
Because power of a signal is directly proportonal to the square of the said RMS amplitude

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

추가 답변 (1개)

Wayne King
Wayne King 2012년 4월 16일
You can increase the SNR by increasing the amplitude of the signal and by decreasing the variance of the noise. You have to remember that if you want to increase the variance of the noise by 2, you should multiply randn() by sqrt(2), not 2. Multiplying by two increases the variance by a factor of 4.
x = randn(100,1); % variance is 1
x = sqrt(2)*randn(100,1) % variance is 2
  댓글 수: 1
raj
raj 2012년 4월 16일
how should i calculate SNR is it by calculating the variance of signal and noise and dividing them and then applyng log to it

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

카테고리

Help CenterFile Exchange에서 Signal Processing에 대해 자세히 알아보기

태그

아직 태그를 입력하지 않았습니다.

Community Treasure Hunt

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

Start Hunting!

Translated by