How to find the error between two plots and plot the error in same diagram
Show older comments
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 Comments
KSSV
on 15 Feb 2022
The dimensions of (Estimated_long, Estimated_Lat) and (G_Long, G_Lat)are same?
Abdul Sajeed Mohammed
on 15 Feb 2022
KSSV
on 15 Feb 2022
Then find the distance between them, this would give you the error,.
Abdul Sajeed Mohammed
on 15 Feb 2022
Accepted Answer
More Answers (0)
Categories
Find more on Ground Truth Labeling in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
