Clear Filters
Clear Filters

matlab code for finding MSE and PSNR between two audio signals

1 view (last 30 days)
I want matlab code for MSE and PSNR between two audio signals..please help me..

Answers (1)

Shivaputra Narke
Shivaputra Narke on 30 Jan 2014
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

Community Treasure Hunt

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

Start Hunting!