matlab code for finding MSE and PSNR between two audio signals

조회 수: 3 (최근 30일)
kurumeti
kurumeti 2014년 1월 30일
댓글: Sheikh Thanbir Alam 2020년 7월 19일
I want matlab code for MSE and PSNR between two audio signals..please help me..

답변 (1개)

Shivaputra Narke
Shivaputra Narke 2014년 1월 30일
Hope this helps.....
[R C]=size(signal1); err = (((signal1-signal2).^2)/(R*C)); % size of signals must be same length MSE=sqrt(err); PSNR = 20*log10(MAXVAL/MSE); % MAXVAL= 255 in case of 8 bit signal
  댓글 수: 3
iqbal maulana
iqbal maulana 2017년 12월 17일
size of y1 and y2 is not same
Sheikh Thanbir Alam
Sheikh Thanbir Alam 2020년 7월 19일
But Max value for image is 255?? So, shoud we use 255 in audio signal???

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

카테고리

Help CenterFile Exchange에서 Audio I/O and Waveform Generation에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by