필터 지우기
필터 지우기

How to calculate RMSE from Simulink Scope plots

조회 수: 81 (최근 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 CenterFile Exchange에서 Scopes and Data Logging에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by