matlab code for finding MSE and PSNR between two audio signals

답변 (1개)

Shivaputra Narke
Shivaputra Narke 2014년 1월 30일

0 개 추천

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

i am getting this error while calculating MSE
size of y1 and y2 is not same
But Max value for image is 255?? So, shoud we use 255 in audio signal???

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

카테고리

도움말 센터File Exchange에서 Audio I/O and Waveform Generation에 대해 자세히 알아보기

질문:

2014년 1월 30일

댓글:

2020년 7월 19일

Community Treasure Hunt

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

Start Hunting!

Translated by