RMSE heart rate estimation

How do i write RMSE fomula in matlab. K is the length signal

 Accepted Answer

Chunru
Chunru on 24 May 2022
Edited: Chunru on 24 May 2022
hrerror = randn(100, 1); % generate some random data
hr_rmse =rms(hrerror) % use rms function
hr_rmse = 1.0289
hr_rmse1 = sqrt(mean(hrerror.^2)) % root-mean-square
hr_rmse1 = 1.0289
% 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)
hr_rmse2 = 1.0289

3 Comments

can you manually code like fomula above? btw thank you
see above
Thankkkk youuuu, solved!!!!!

Sign in to comment.

More Answers (0)

Categories

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

Asked:

on 24 May 2022

Commented:

on 24 May 2022

Community Treasure Hunt

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

Start Hunting!