Writing RMSE fomula in Matlab

1 次查看(过去 30 天)
Amir Hamzah
Amir Hamzah 2022-5-26
How to code this RMSE in matlab. Im stuck to do sum of series because it have double argrument.
N = length of signal
  2 个评论
Torsten
Torsten 2022-5-26
Are you sure you set the brackets correcty in the formula ?
Amir Hamzah
Amir Hamzah 2022-5-26
N = length(alldata);
TrainingAccuracy = sqrt((symsum(((Y - T).^2),N,1,N))/N);
is it correct?

请先登录,再进行评论。

回答(1 个)

DGM
DGM 2022-5-26
Assuming that the inputs are of comparable scale and of floating-point class:
rmse = sqrt(mean((A(:)-B(:)).^2))

类别

Help CenterFile Exchange 中查找有关 Get Started with Signal Processing Toolbox 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by