Code for calculating root mean squared error for data
Version 1.4.0.0 (1.17 KB) by
Kamlesh Pawar
This is a simple code which accurately calculates RMS error for real or complex data.
er = rms_error(A1,A2)
here A1, A2 are original and reconstructed data. The order of A1,A2 doesn't matter, interchanging them will also give same result.
Cite As
Kamlesh Pawar (2024). Code for calculating root mean squared error for data (https://www.mathworks.com/matlabcentral/fileexchange/33595-code-for-calculating-root-mean-squared-error-for-data), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2007b
Compatible with any release
Platform Compatibility
Windows macOS LinuxCategories
Find more on Statistics and Machine Learning Toolbox in Help Center and MATLAB Answers
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.