RMSE heart rate estimation
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Amir Hamzah
am 24 Mai 2022
Kommentiert: Amir Hamzah
am 24 Mai 2022
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1008765/image.jpeg)
How do i write RMSE fomula in matlab. K is the length signal
0 Kommentare
Akzeptierte Antwort
Chunru
am 24 Mai 2022
Bearbeitet: Chunru
am 24 Mai 2022
hrerror = randn(100, 1); % generate some random data
hr_rmse =rms(hrerror) % use rms function
hr_rmse1 = sqrt(mean(hrerror.^2)) % root-mean-square
% Not recommended
hr_rmse2=0;
K = length(hrerror);
for i=1:K
hr_rmse2 = hr_rmse2 + hrerror(i).^2;
end
hr_rmse2 = sqrt(hr_rmse2/K)
3 Kommentare
Weitere Antworten (0)
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!