How to find RMSE of ground robot simulation ..?

6 ビュー (過去 30 日間)
Paarth
Paarth 2022 年 9 月 6 日
回答済み: Sam Chak 2022 年 9 月 7 日
So I've designed the ground robot for a assignment and want to find to find the rmse of the simulation. I need 'how to' directions in the simplest way. Please someone help me ..

回答 (1 件)

Sam Chak
Sam Chak 2022 年 9 月 7 日
Perhaps you are talking about the mobile robot's travelled path and the planned path.
This probably works provided that you have the Image Processing Toolbox.
x = linspace(-5, 5, 1001);
y1 = (tanh(x) + 1)/2;
y2 = (erf(sqrt(pi/4)*x) + 1)/2;
plot(x, [y1; y2]'), grid on, xlabel('x'), ylabel('y')
legend('tanh', 'erf')
xticks([-5 -2.5 0 2.5 5])
rmse = sqrt(immse(y1, y2))
rmse = 0.0083

カテゴリ

Help Center および File ExchangeRobotics についてさらに検索

製品


リリース

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by