MATLAB Examples

PSNR MSE R RMSE NRMSE MAPE

Contents

clc
clear all
close all

Proof

m=500;
n=1;
Refernce=rand(m,n);
Test=Refernce;
Result=CalcPerf(Refernce,Test);
disp('Result')
disp(Result)
Result
       MSE: 0
      PSNR: Inf
    Rvalue: 1
      RMSE: 0
     NRMSE: 0
      Mape: 0

Demo 1

m=500;
n=500;
Refernce=rand(m,n);
Test=rand(m,n);
Result=CalcPerf(Refernce,Test);
disp('Result')
disp(Result)
Result
       MSE: 0.16708
      PSNR: 7.7707
    Rvalue: 0.49932
      RMSE: 0.40876
     NRMSE: 0.40876
      Mape: 1195.5

Demo 2

m=500;
n=1;
Refernce=rand(m,n);
Test=rand(m,n);
Result=CalcPerf(Refernce,Test);
disp('Result')
disp(Result)
Result
       MSE: 0.163
      PSNR: 7.878
    Rvalue: 0.50404
      RMSE: 0.40374
     NRMSE: 0.40639
      Mape: 308.22