Code covered by the BSD License  

Highlights from
StreakArrow

5.0

5.0 | 1 rating Rate this file 12 Downloads (last 30 days) File Size: 2.62 KB File ID: #22269
image thumbnail

StreakArrow

by Bertrand Dano

 

28 Nov 2008 (Updated 01 Dec 2008)

Creates curved vector fields or "tuft" lines to look like wind tunnel tuft flow visualization.

| Watch this File

File Information
Description

H = STREAKARROW(X,Y,U,V,np,arrow) creates "curved" vectors, from 2D vector data U and V. All vectors have the same length. The magnitude of the vector is color coded.
 The arrays X and Y defines the coordinates for U and V.
 The variable np is a coefficient >0, changing the length of the vectors.
 np=1 corresponds to a whole meshgrid step.
 np>1 allows ovelaps like streamlines.
 The parameter arrow defines the type of plot:
   arrow=1 draws "curved" vectors
   arrow=0 draws circle markers with streaks like "tuft" in wind tunnel studies

Acknowledgements
This submission has inspired the following:
CURVVEC
MATLAB release MATLAB 6.5 (R13)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (1)
23 Mar 2009 Vinesh Rajpaul

Hi Bertrand. Thanks for referring me to this script -- it's exactly what I needed (quiverc except with arrow lengths normalised). Works perfectly. I agree that in some (most?) cases the vector length and color coding should complement each other - just didn't want to use the former in my particular application. Keep up the great work!

Please login to add a comment or rating.
Updates
01 Dec 2008

added custom colorbar support

Tag Activity for this File
Tag Applied By Date/Time
vector fields Bertrand Dano 01 Dec 2008 15:21:43
quiver Bertrand Dano 01 Dec 2008 15:21:43
streamlines Bertrand Dano 01 Dec 2008 15:21:43
fluid Bertrand Dano 01 Dec 2008 15:21:43
aerospace Bertrand Dano 01 Dec 2008 15:21:43
physics Bertrand Dano 01 Dec 2008 15:21:43

Contact us at files@mathworks.com