Be the first to rate this file! 61 downloads (last 30 days) File Size: 10.59 KB File ID: #24600

quiver2.m v1.2 (Nov 2009)

by Carlos Adrian Vargas Aguilera

 

30 Jun 2009 (Updated 12 Nov 2009)

Code covered by the BSD License  

Same as QUIVER, QUIVER3 or FEATHER but with colored, normalized, widened and ARROW's!

Download Now | Watch this File

File Information
Description

This program use QUIVER/QUIVER2 to generate a vector field specialized plot and then customizes the arrows according to its length.

Just type
>> quiver2(U,V)
and that's it. You get
- customized arrows
- NaNs ignored and
- real (U,V) angles with respect to your print/screen.

To use only 7 colors use
>> quiver2(U,V,'c=',jet(7))
or your own colormap if you have my CMAPPING
>> quiver2(U,V,'c=','rygb')

To not normalize the length and draw all lines with the same length use:
>> quiver2(U,V,'n=',0,'w=',1)

To customize the arrows download ARROW by Erik Johnson here at the FileExchange and use:
>> quiver2(U,V,'a@','fancy')

Of course x,y,z may be used, as well as U,V,W and the S,'filled' normal options of QUIVER, besides of others '=' and '@' options as well.

To use it as FEATHER use
>> quiver2(U,V,'t=','feather')
or
>> quiver2(x,[],U,V)

Recommended to download also my CMAPPING and TLABEL for better use of this function.

Enjoy it!
Bugs reports and comments will be very appreciated!

Acknowledgements

The author wishes to acknowledge the following in the creation of this submission:
arrow.m, tlabel.m v2.6.1 (Sep 2009), COLORMAP and COLORBAR utilities (Sep 2009)

MATLAB release MATLAB 7.7 (R2008b)
Other requirements * Download also ARROW.m by Erik Johnson * COLORMAP and COLORBAR utilities by Carlos Vargas * TLABEL.m by Carlos Vargas
Zip File Content  
Other Files license.txt,
quiver2.m
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Please login to add a comment or rating.
Updates
23 Oct 2009

v1.1 Fixed bug with inputs check-in and an error message (thanks to Ayal Anis).

12 Nov 2009

v1.2 Fixed bug when used 0 in 'n=' thanks to Ayal Anis.

12 Nov 2009

Small typo on submit name.

Tag Activity for this File
Tag Applied By Date/Time
quiver Carlos Adrian Vargas Aguilera 01 Jul 2009 11:28:03
quiver3 Carlos Adrian Vargas Aguilera 01 Jul 2009 11:28:03
feather Carlos Adrian Vargas Aguilera 01 Jul 2009 11:28:03
arrow Carlos Adrian Vargas Aguilera 01 Jul 2009 11:28:03
vector field Carlos Adrian Vargas Aguilera 01 Jul 2009 11:28:03
 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com