showvec.mBack to Contents<< Prev |  Next >> 

showvec
Display vector field(s)

Description
showvec(V) displays the vector field V. The Matlab structure V can be 
obtained from a vector file using loadvec or loadset. If V is a 
structure array, showvec shows a movie of all the vector fields. By 
default, showvec uses the norm of the vector field for the background. 
 
showvec(V,BGMODE) uses the BGMODE background ('rot','norm' etc.) See 
vec2scal for the list of available background modes. If no BGMODE 
specified, uses 'norm'.  Specify BGMODE='' for no background (white). 
Add 'cont' to the BGMODE string to also display the contour lines. 
Example: showvec(loadset,'rotcont'); 
 
showvec(V,'pause') waits for mouse button or key pressed between each 
frame: 
      Left mouse button, or right arrow, or space bar: next frame. 
      Right mouse button or left arrow: previous frame. 
      Esc or 'x' or 'q': exit showvec. 
This option can be added to any BGMODE (eg, showvec(V,'pauserot')). 
 
showvec(V,BGMODE,NPT) displays 1 vector every NPT mesh point in each 
direction. If no NPT specified, displays 32 vectors in each direction. 
If NPT is in the form [NPTX NPTY], displays 1 vector every NPTX (resp. 
NPTY) mesh points in the X (resp. Y) direction. 
 
Use showvec(V,BGMODE,NPT,[SMIN SMAX]) to normalize the color scale of 
the background between SMIN and SMAX. 
Use showvec(V,BGMODE,NPT,0) to normalize the color scale from the min 
and max of the background over the whole vector fields V (by default). 
Use showvec(V,BGMODE,NPT,-1) to normalize the color scale from the min 
and max of each vector field in the array V. 
 
showvec(V,BGMODE,NPT,[SMIN SMAX],SA) stretches the arrows by SA. Use 
SA=1 for the arrows to fit in the grid mesh (by default) 
 
MOV = showvec(...) returns a movie, that can be re-displayed using 
MOVIE, or saved as an AVI file using MOVIE2AVI. 
 
showvec file_name  is a shortcut for showvec(loadvec('file_name')). 
showvec(FILENAME,...) is a shortcut for showvec(loadvec(FILENAME),...) 
 
showvec without input argument opens a dialog box for file selection. 
 
Examples:   v=loadvec('B00001.vec'); showvec(v,'',4); 
            showvec(loadset,'rot'); 
            showvec(loadset,'rot',8,[-5,5]); 
            movie2avi(showvec(loadset,'rotcont'),'curl.avi'); 
            showvec *.vec 
            showvec set.mat 
 
F. Moisy 
Revision: 1.26,  Date: 2005/12/20. 
 
See Also
loadvec, loadset, vec2scal, showscal, operf, MOVIE, IMAGE, 
QUIVER. 

 Previous: showscalNext: spaverf 

Help file generated by m2html 1.06