How to calculate RMSE from Simulink Scope plots

48 ビュー (過去 30 日間)
Sreekanth Nandakumar
Sreekanth Nandakumar 2019 年 5 月 22 日
コメント済み: SHAKIRU KASSIM 2022 年 2 月 10 日
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 ?

採用された回答

Shivam Sardana
Shivam Sardana 2019 年 5 月 30 日
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 件のコメント
Sreekanth Nandakumar
Sreekanth Nandakumar 2019 年 6 月 3 日
Thank you very much :)
SHAKIRU KASSIM
SHAKIRU KASSIM 2022 年 2 月 10 日
what about if one wants to find maximum error?

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeView and Analyze Simulation Results についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by