cquiver

版本 1.0.1 (2.6 KB) 作者: Kim Dohyun
Color quiver based on magnitude or angle. Also, support uniform sampling by averaging or taking the fastest velocity within each grid cell.
525.0 次下载
更新时间 2019/6/21

查看许可证

cquiver(x, y, u, v) plots quiver for at given points (x, y) with the velocity (u, v)

quiv = cquiver(x, y, u, v) returns quiver structure with two properties,
Head and Tail. Here, Head and Tail are the patches which are used for drawing heads and tails.

quiv = cquiver(x, y, u, v, 'cdata', 'angle') set color based on angle.
quiv = cquiver(x, y, u, v, 'sampling', h) plots quiver plot
at uniform grid where grid size is h.
Default sampling method is average.
Sampling method can be changed to 'fastest' by using
quiv = cquiver(x, y, u, v, 'sampling', h, 'samplingmethod', 'fastest')
In this case, the fastest one will be chosen from the rectangle
(X(i)-h/2, X(i)+h/2) x (Y(i)-h/2, Y(i)+h/2).

If you found a bug, feel free to contact me via email in the m-file.

引用格式

Kim Dohyun (2024). cquiver (https://www.mathworks.com/matlabcentral/fileexchange/71903-cquiver), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R2019a
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Vector Fields 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
版本 已发布 发行说明
1.0.1

add figure

1.0.0