I have the following code, but this wil not work:
for g = 1:size(scaniadatacompare3)
latStart = scaniadatacompare3.StartLatitude(g);
lonStart = scaniadatacompare3.StartLongitude(g);
latStop = scaniadatacompare3.EndLatitude(g);
lonStop = scaniadatacompare3.EndLongitude(g);
geoplot([latStart latStop],[lonStart lonStop],'b-*','LineWidth',3)
textm(latStart, lonStart+0.3, num2str((scaniadatacompare3.DistanceKm(g))'), 'FontSize',14)
Here I read a table with latitude and longitude coordinates. In this table is also a DistanceKm number, I need to plot this number over the map as a layer. Anyone who can help me with this?