RMSE
Version 1.1.0.0 (466 Bytes) by
Felix Hebeler
calculates root mean square error from data vector or matrix and the corresponding estimates.
Short script that calculates root mean square error from data vector or matrix and the corresponding estimates.
Checks for NaNs in data and estimates and deletes them and then simply does:
r = sqrt( sum( (data(:)-estimate(:)).^2) / numel(data) );
That's it.
Cite As
Felix Hebeler (2026). RMSE (https://ch.mathworks.com/matlabcentral/fileexchange/21383-rmse), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2006a
Compatible with any release
Platform Compatibility
Windows macOS LinuxCategories
- MATLAB > Mathematics > Elementary Math > Polynomials >
Find more on Polynomials in Help Center and MATLAB Answers
Tags
Acknowledgements
Inspired: rmse(true_values, prediction)
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
