plot_quiver

PURPOSE ^

PLOT_QUIVERVEL - plot arrow field of 2d velocities

SYNOPSIS ^

function plot_quivervel(md,options_structure,width,i);

DESCRIPTION ^

PLOT_QUIVERVEL - plot arrow field of 2d velocities

   Usage:
      plot_quivervel(md,options_structure,width,i);

   See also: PLOTMODEL

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function plot_quivervel(md,options_structure,width,i);
0002 %PLOT_QUIVERVEL - plot arrow field of 2d velocities
0003 %
0004 %   Usage:
0005 %      plot_quivervel(md,options_structure,width,i);
0006 %
0007 %   See also: PLOTMODEL
0008 
0009 %process data and model
0010 [x y z elements is2d]=processmesh(md,options_structure);
0011 [vx isongrid]=processdata(md,md.vx,options_structure);
0012 [vy isongrid]=processdata(md,md.vy,options_structure);
0013 
0014 %plot mesh quivervel
0015 subplot(width,width,i); 
0016                     
0017 %quiver 2d
0018 quiver(x,y,vx,vy);
0019 
0020 %apply options
0021 if isnan(options_structure.title)
0022     options_structure.title='Velocity vectors';
0023 end 
0024 if isnan(options_structure.colorbar)
0025     options_structure.colorbar=0;
0026 end
0027 applyoptions(md,[],options_structure);

Generated on Sun 29-Mar-2009 20:22:55 by m2html © 2003