How to find the error between two plots and plot the error in same diagram
Mostrar comentarios más antiguos
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 comentarios
KSSV
el 15 de Feb. de 2022
The dimensions of (Estimated_long, Estimated_Lat) and (G_Long, G_Lat)are same?
Abdul Sajeed Mohammed
el 15 de Feb. de 2022
KSSV
el 15 de Feb. de 2022
Then find the distance between them, this would give you the error,.
Abdul Sajeed Mohammed
el 15 de Feb. de 2022
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Marine and Underwater Vehicles en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

