How to find the error between two plots and plot the error in same diagram
Mostra commenti meno recenti
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 Commenti
KSSV
il 15 Feb 2022
The dimensions of (Estimated_long, Estimated_Lat) and (G_Long, G_Lat)are same?
Abdul Sajeed Mohammed
il 15 Feb 2022
KSSV
il 15 Feb 2022
Then find the distance between them, this would give you the error,.
Abdul Sajeed Mohammed
il 15 Feb 2022
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Marine and Underwater Vehicles in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

