Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

quiver3m

Project 3-D quiver plot on map axes

Syntax

h = quiver3m(lat,lon,alt,u,v,w)
h = quiver3m(lat,lon,alt,u,v,w,linestyle)
h = quiver3m(lat,lon,alt,u,v,w,linestyle,'filled')
h = quiver3m(lat,lon,alt,u,v,w,scale)
h = quiver3m(lat,lon,alt,u,v,w,linestyle,scale)
h = quiver3m(lat,lon,alt,u,v,w,linestyle,scale,'filled')

Description

h = quiver3m(lat,lon,alt,u,v,w) displays velocity vectors with components (u,v,w) at the geographic points (lat,lon) and altitude alt on a displayed map axes. The inputs u, v, and w determine the direction of the vectors in latitude, longitude, and altitude, respectively. The function automatically determines the length of these vectors to make them as long as possible without overlap. The object handles of the displayed vectors can be returned in h.

h = quiver3m(lat,lon,alt,u,v,w,linestyle) where linestyle is a linespec that controls the type of line used. If you use symbols, they are plotted at the start points of the vectors, i.e., the input points (lat,lon,alt).

h = quiver3m(lat,lon,alt,u,v,w,linestyle,'filled') results in the filling in of any symbols specified by linespec.

h = quiver3m(lat,lon,alt,u,v,w,scale), h = quiver3m(lat,lon,alt,u,v,w,linestyle,scale) and h = quiver3m(lat,lon,alt,u,v,w,linestyle,scale,'filled') alter the automatically calculated vector lengths by multiplying them by the scalar value scale. For example, if scale is 2, the displayed vectors are twice as long as they would be if scale were 1 (the default). When scale is set to 0, the automatic scaling is suppressed and the length of the vectors is determined by the inputs. In this case, the vectors are plotted from (lat,lon,alt) to (lat+u,lon+v,alt+w).

Examples

collapse all

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

See Also

|

Introduced before R2006a

Was this topic helpful?