필터 지우기
필터 지우기

Implement an alternative to SNR function

조회 수: 1 (최근 30일)
Hasan Ghorbani
Hasan Ghorbani 2015년 9월 21일
댓글: Walter Roberson 2015년 9월 24일
Folks,
I have x as following:
[x,Fs] = audioread(strcat(PathName,FileName));
And some noise in the form of alpha*v as below:
rng('default');
alpha=0.2;
v = randn(size(x));
I don't have Signal Processing toolbox to use snr() function. How can I find SNR as given in this equation?

답변 (1개)

Walter Roberson
Walter Roberson 2015년 9월 22일
  댓글 수: 2
Hasan Ghorbani
Hasan Ghorbani 2015년 9월 24일
편집: Hasan Ghorbani 2015년 9월 24일
Thansk. Am I right by using following code:
x_snr_db = 20 * log10( sum(x.^2) / sum((alpha * v).^2) );
Walter Roberson
Walter Roberson 2015년 9월 24일
Where did the 20 come from?

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

카테고리

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

태그

Community Treasure Hunt

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

Start Hunting!

Translated by