Here's a MATLAB code that defines the calcrmse
function which calculates the Root Mean Squared Error (RMSE) between two input vectors of the same size. If the sizes of the input vectors differ, it returns an error message.
main.m301 chars14 lines
You can call this function in MATLAB with two input vectors:
main.m83 chars5 lines
This will give you the RMSE between vector1
and vector2
. Note that the two vectors should be of the same size.
gistlibby LogSnag