Code covered by the BSD License  

Highlights from
CURVVEC

5.0

5.0 | 1 rating Rate this file 11 Downloads (last 30 days) File Size: 4.85 KB File ID: #25066
image thumbnail

CURVVEC

by Andrew Stevens

 

18 Aug 2009

draw curved vectors from 2D vector data

| Watch this File

File Information
Description

CURVVEC creates curved vectors for 2D vector components U,V. The arrays X,Y define the coordinates for U and V. Curvature of the vectors is based on ML Built-in function, STREAM2. The length of the vectors are scaled to the vector magnitude. The color of the vectors may or may not be scaled according to the vector magnitude depending on optional input parameters.

EXAMPLE:

load wind
mu=mean(u,3); mv=mean(v,3); mx=mean(x,3); my=mean(y,3);

figure
curvvec(mx,my,mu,mv,'color',jet,'minmag',5,...
        'maxmag',50,'thin',3)
set(gca,'color','k')

Acknowledgements

The author wishes to acknowledge the following in the creation of this submission:
StreakArrow

MATLAB release MATLAB 7.8 (R2009a)
Other requirements should work on version 7.1 and newer.
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (1)
03 Sep 2009 Sandeep Bhat

I am using this to visualize blood flow in heart images and it works great. So far so good

Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
quiver Andrew Stevens 18 Aug 2009 14:39:42
vector field Andrew Stevens 18 Aug 2009 14:39:43
stream lines Andrew Stevens 18 Aug 2009 14:39:43
2d Andrew Stevens 18 Aug 2009 14:39:43
specialized plotting Andrew Stevens 18 Aug 2009 14:39:43

Contact us at files@mathworks.com