I have two columns with the x and y coordinates for the Actual and the estimates .How do I find the RMS error for each of the elements in the columns ?

5 visualizaciones (últimos 30 días)
RMSEx = sqrt(mean((gt_track_spatial(:,1) - Int_point(:,1)).^2));
RMSEy = sqrt(mean((gt_track_spatial(:,2) - Int_point(:,2)).^2));
This is my code, but it just returns one value for RMSEx and RMSEy.
How to return a vector for the rms values for the x and y coordinates for each of the elements in the columns?

Respuestas (1)

Aparna Singh
Aparna Singh el 17 de Abr. de 2020
len_dat = size(gt_track_spatial,1);
for i = 1:len_dat
RMSEx(i) = sqrt(mean((gt_track_spatial(i,1)-Int_point(i,1))^2));
RMSEy(i) = sqrt(mean((gt_track_spatial(i,2)-Int_point(i,2))^2));
end

Categorías

Más información sobre NaNs en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by