calculate the mean square error

6 views (last 30 days)
Guido Pastore
Guido Pastore on 15 Mar 2019
Commented: Adam on 18 Mar 2019
Given two arrays of double how do I calculate the mean square error

Answers (1)

Adam
Adam on 15 Mar 2019
Calculate the error, square it and calculate the mean!
mean( ( a - b ).^2 );
  4 Comments
Adam
Adam on 18 Mar 2019
doc interp1
should allow you to resample the 601 up to 1054 (or the 1054 down to 601 if you prefer) and then you can compare per-point, bearing in mind that you are no longer comparing raw data.

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!

Translated by