quiver2.m v1.2 (Nov 2009)
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!
Citation pour cette source
Carlos Adrian Vargas Aguilera (2024). quiver2.m v1.2 (Nov 2009) (https://www.mathworks.com/matlabcentral/fileexchange/24600-quiver2-m-v1-2-nov-2009), MATLAB Central File Exchange. Extrait(e) le .
Compatibilité avec les versions de MATLAB
Plateformes compatibles
Windows macOS LinuxCatégories
- MATLAB > Graphics > 2-D and 3-D Plots > Vector Fields >
Tags
Remerciements
Inspiré par : arrow, tlabel.m v2.6.1 (Sep 2009), COLORMAP and COLORBAR utilities (Jul 2014)
A inspiré : quiverwcolorbar
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Découvrir Live Editor
Créez des scripts avec du code, des résultats et du texte formaté dans un même document exécutable.
Version | Publié le | Notes de version | |
---|---|---|---|
1.4.0.0 | Small typo on submit name. |
||
1.2.0.0 | v1.2 Fixed bug when used 0 in 'n=' thanks to Ayal Anis. |
||
1.1.0.0 | v1.1 Fixed bug with inputs check-in and an error message (thanks to Ayal Anis). |
||
1.0.0.0 |