How to calculate RMSE from Simulink Scope plots
61 次查看(过去 30 天)
显示 更早的评论
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 ?
0 个评论
采纳的回答
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 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 View and Analyze Simulation Results 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!