www.gusucode.com > map 案例源码 matlab代码程序 > map/Plot3DQuiverVectorsExample.m

    %% Plot 3-D Quiver Vectors
%  
%%
% Plot 3-D quiver vectors from London (51.5°N,0°) and New Delhi
% (29°N,77.5°E), both at an altitude of 0. Suppress the automatic
% scaling. Terminate both vectors at an altitude of 1; the London vector
% should terminate 100° southward and 70° eastward, while the New
% Delhi vector should terminate 50° northward and 10° eastward.
load coastlines
axesm miller; 
view(3)
plotm(coastlat,coastlon)
lat0 = [51.5,29]; 
lon0 = [0 77.5]; 
alt = [0 0];
u = [-40 50]; 
v = [-70 10]; 
w = [1 1];
quiver3m(lat0,lon0,alt,u,v,w,'m')
tightmap