quivermc
quivermc is an adapted version of Andrew Roberts' ncquiverref. Dr. Roberts' function and this function fix a couple of problems with Matlab's quiverm function. The two primary reasons you should never use quiverm are as follows:
1. Matlab's quiverm confoundingly mixes up u and v. By convention in the Earth sciences, u is the zonal component where eastward is positive and v is the meridional component where northward is positive. Matlab gets this wrong, but the quivermc function described here gets it right.
2. For reasons related to ship travel and some old legacy code from Navy guys decades ago, Matlab's quiverm scales vectors in a strange way that depends on latitude. If you're plotting some absolute field like wind vectors, there is no physical reason that you would want to scale vectors in such a way that their zonal components shrink to zero at the poles.
In addition to fixing the problems described above, quivermc also allows a few extra options including color settings, arrow density, and options for displaying converging or diverging flow.
Zitieren als
Chad Greene (2024). quivermc (https://www.mathworks.com/matlabcentral/fileexchange/47314-quivermc), MATLAB Central File Exchange. Abgerufen .
Kompatibilität der MATLAB-Version
Plattform-Kompatibilität
Windows macOS LinuxKategorien
- MATLAB > Graphics > 2-D and 3-D Plots > Vector Fields >
Tags
Quellenangaben
Inspiriert von: Quiverc, quiverc2, quiverc2wcmap, quiverc, quiverc.m--updated with new features, quiverwcolorbar, ncquiverref, calcticks
Inspiriert: circlem
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Live Editor erkunden
Erstellen Sie Skripte mit Code, Ausgabe und formatiertem Text in einem einzigen ausführbaren Dokument.
quivermc_documentation/html/
Version | Veröffentlicht | Versionshinweise | |
---|---|---|---|
1.4.0.0 | Typo fix in example file. |
||
1.3.0.0 | Now includes options for colorbar formatting, made possible in part by John Barber's calcticks function. |
||
1.2.0.0 | Now includes linewidth option and more arrow size scaling options. |
||
1.1.0.0 | Removed 'refvec' 'on' or 'off' style. Now a reference vector is printed only when units are declared. |
||
1.0.0.0 |