Respuesta aceptada

Chunru
Chunru el 24 de Mayo de 2022
Editada: Chunru el 24 de Mayo de 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 comentarios

Amir Hamzah
Amir Hamzah el 24 de Mayo de 2022
can you manually code like fomula above? btw thank you
Chunru
Chunru el 24 de Mayo de 2022
see above
Amir Hamzah
Amir Hamzah el 24 de Mayo de 2022
Thankkkk youuuu, solved!!!!!

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Signal Processing Toolbox en Centro de ayuda y File Exchange.

Preguntada:

el 24 de Mayo de 2022

Comentada:

el 24 de Mayo de 2022

Community Treasure Hunt

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

Start Hunting!

Translated by