Writing RMSE fomula in Matlab

2 views (last 30 days)
Amir Hamzah
Amir Hamzah on 26 May 2022
Commented: Amir Hamzah on 26 May 2022
How to code this RMSE in matlab. Im stuck to do sum of series because it have double argrument.
N = length of signal
  2 Comments
Torsten
Torsten on 26 May 2022
Are you sure you set the brackets correcty in the formula ?
Amir Hamzah
Amir Hamzah on 26 May 2022
N = length(alldata);
TrainingAccuracy = sqrt((symsum(((Y - T).^2),N,1,N))/N);
is it correct?

Sign in to comment.

Answers (1)

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

Categories

Find more on Get Started with Signal Processing Toolbox in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!