Writing RMSE fomula in Matlab

1 回表示 (過去 30 日間)
Amir Hamzah
Amir Hamzah 2022 年 5 月 26 日
コメント済み: 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 Center および File ExchangeGet 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