plot_quiver3

PURPOSE ^

PLOT_QUIVERVEL3 - plot arrow field of 3d velocities

SYNOPSIS ^

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

DESCRIPTION ^

PLOT_QUIVERVEL3 - plot arrow field of 3d velocities

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

   See also: PLOTMODEL

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function plot_quivervel3(md,options_structure,width,i);
0002 %PLOT_QUIVERVEL3 - plot arrow field of 3d velocities
0003 %
0004 %   Usage:
0005 %      plot_quivervel3(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 [vz isongrid]=processdata(md,md.vz,options_structure);
0014 
0015 %plot mesh quivervel3
0016 subplot(width,width,i); 
0017 
0018 %quiver 3d
0019 quiver3(x,y,z,vx,vy,vz);
0020 
0021 %apply options
0022 if isnan(options_structure.title)
0023     options_structure.title='Velocity vectors (3D)';
0024 end 
0025 if isnan(options_structure.colorbar)
0026     options_structure.colorbar=1;
0027 end
0028 applyoptions(md,[],options_structure);

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