quiver函数

来源:百度文库 编辑:神马文学网 时间:2024/04/30 12:15:46
 QUIVER Quiver plot.%速度矢量
    QUIVER(X,Y,U,V) plots velocity vectors as arrows with components (u,v)
    at the points (x,y).  The matrices X,Y,U,V must all be the same size
    and contain corresponding position and velocity components (X and Y
    can also be vectors to specify a uniform grid).  QUIVER automatically
    scales the arrows to fit within the grid.
 
    QUIVER(U,V) plots velocity vectors at equally spaced points in
    the x-y plane.
 
    QUIVER(U,V,S) or QUIVER(X,Y,U,V,S) automatically scales the
    arrows to fit within the grid and then stretches them by S.  Use
    S=0 to plot the arrows without the automatic scaling.
 
    QUIVER(...,LINESPEC) uses the plot linestyle specified for
    the velocity vectors.  Any marker in LINESPEC is drawn at the base
    instead of an arrow on the tip.  Use a marker of '.' to specify
    no marker at all.  See PLOT for other possibilities.
 
    QUIVER(...,'filled') fills any markers specified.
 
    H = QUIVER(...) returns a vector of line handles.
 
    Example:
       [x,y] = meshgrid(-2:.2:2,-1:.15:1);
       z = x .* exp(-x.^2 - y.^2); [px,py] = gradient(z,.2,.15);
       contour(x,y,z), hold on
       quiver(x,y,px,py), hold off, axis image
 
    See also FEATHER, QUIVER3, PLOT.