matlab code for finding MSE and PSNR between two audio signals

I want matlab code for MSE and PSNR between two audio signals..please help me..

回答 (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 件のコメント

ayesha jabeen
ayesha jabeen 2016 年 10 月 4 日
i am getting this error while calculating MSE
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???

サインインしてコメントする。

カテゴリ

ヘルプ センター および File ExchangeAudio Processing Algorithm Design についてさらに検索

質問済み:

2014 年 1 月 30 日

Community Treasure Hunt

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

Start Hunting!

Translated by