MATLAB rmse
The rmse function calculates root mean squared errors.
Contents
Usage
To calculate the root mean squared errors between two vectors representing predictions ('forecasts') and actual values, try:
rmse(F,A)
To calculate the root mean squared errors between all elements in two same-sized matrices, try:
rmse(F,A,"all")
Note that this is effectively the same as calculating the Frobenius product as norm(F-A,"fro") and then dividing it by the square root of the number of elements. (Recall that it is root mean squared errors.)
