I have a 2x1000 matrix with latitude values in 1st row and longitude values in 2nd row.
I want to plot a trajectory using these values on a 3D globe.
You can get some inspiration here, and then use the plot3m
function.
Here is an exemple:
% Create the globe with graticule
axesm('globe');
gridm('GLineStyle','-','Gcolor',[.8 .7 .6],'Galtitude', .02);
load coast
plot3m(lat,long,.01,'k');
% Define lat and long
lat = sort(360*rand(50,1));
lon = 180*rand(50,1);
% Plot trajectory
h = plot3m(lat,lon,'r.-', 'MarkerSize', 20);
view(3);