How to calculate RMSE from Simulink Scope plots

69 Ansichten (letzte 30 Tage)
Sreekanth Nandakumar
Sreekanth Nandakumar am 22 Mai 2019
Kommentiert: SHAKIRU KASSIM am 10 Feb. 2022
Hello All,
I have a plot containing a simulated as well as an experimental data of a system in simulink . I want to calculate the Root mean square error (RMSE) of the data. Can anyone explain to me how to extract data from the scope and calculate the RMSE ?

Akzeptierte Antwort

Shivam Sardana
Shivam Sardana am 30 Mai 2019
To log the data from Scope block, check Save Simulation Data Using a Scope Block in Common Scope Block Tasks. To calculate RMSE (Root Mean Square Error),
RMSE = sqrt(mean((simulatedData - experimentalData).^2));
  2 Kommentare
Sreekanth Nandakumar
Sreekanth Nandakumar am 3 Jun. 2019
Thank you very much :)
SHAKIRU KASSIM
SHAKIRU KASSIM am 10 Feb. 2022
what about if one wants to find maximum error?

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu View and Analyze Simulation Results finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by