vfield_color

版本 1.0.0.0 (2.3 KB) 作者: DS
Plot a 2-D vector field, where color is defined by a colormap and indicates vector magnitude.
2.6K 次下载
更新时间 2009/3/18

查看许可证

The function VFIELD_COLOR plots 2-D velocity vectors with colors defined by a colormap.

Syntax:
VFIELD_COLOR(X,Y,U,V,SCALE,CMAP)

Inputs:
X, Y Arrows origin, N-D arrays
U, V Current components, N-D arrays
SCALE Scalar value to set vector lengths
CMAP Colormap, N x 3 array of RGB values

Example:
image = zeros(100);
x = (rand(1,50) .* 80) + 10;
y = (rand(1,50) .* 80) + 10;
u = rand(1,50) .* 100;
v = rand(1,50) .* 100;
cmap = jet(64);
scale = 10;
vfield_color(image,x,y,u,v,scale,cmap)

See also QUIVER, FEATHER, VFIELD

** The current implementation doesn't return handles to the graphics objects created by vfield.

引用格式

DS (2024). vfield_color (https://www.mathworks.com/matlabcentral/fileexchange/23352-vfield_color), MATLAB Central File Exchange. 检索时间: .

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

参考作品: vfield

启发作品: quiverwcolorbar

Community Treasure Hunt

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

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