matlab code for finding MSE and PSNR between two audio signals

Respuestas (1)

Shivaputra Narke
Shivaputra Narke el 30 de En. de 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

3 comentarios

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???

Iniciar sesión para comentar.

Categorías

Más información sobre Audio I/O and Waveform Generation en Centro de ayuda y File Exchange.

Preguntada:

el 30 de En. de 2014

Comentada:

el 19 de Jul. de 2020

Community Treasure Hunt

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

Start Hunting!

Translated by