How to find the error between two plots and plot the error in same diagram
Afficher commentaires plus anciens
I need to plot error between two plots Ground_truth and Estimated_Long_Lat
Sharing my code here
figure;
Estimated_long = 180 / pi * lon;
Estimated_Lat = 180 / pi * lat;
plot(180 / pi * lon, 180 / pi * lat,'x','Linewidth',0.5);
hold on
Ground_Truth = xlsread('27');
G_Long = Ground_Truth(:,1);
G_Lat = Ground_Truth(:,2);
plot(G_Long,G_Lat,'-x','Linewidth',2)
hold on
hold off
ylabel('Latitude, [deg]','FontSize', 13);
xlabel('Longitude, [deg]','FontSize', 13);
title('Trajectory of vehicle with position close to Lane level','FontSize', 15)
legend('Estimated trajectory', 'Centre nodes of True trajectory','best')
Thanks
4 commentaires
KSSV
le 15 Fév 2022
The dimensions of (Estimated_long, Estimated_Lat) and (G_Long, G_Lat)are same?
Abdul Sajeed Mohammed
le 15 Fév 2022
KSSV
le 15 Fév 2022
Then find the distance between them, this would give you the error,.
Abdul Sajeed Mohammed
le 15 Fév 2022
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Marine and Underwater Vehicles dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

