vfield

版本 1.0.0.0 (2.3 KB) 作者: M MA
Plot 2D velocity field.
3.1K 次下载
更新时间 2005/10/6

查看许可证

Syntax:
HANDLE = VFIELD(X,Y,U,V,VARARGIN)

Inputs:
X, Y Arrows origin, N-D arrays
U, V Current components, N-D arrays
VARARGIN:
C, patches CData
'color', <color> line/patch color [ 'k' ]
'fill', [ {0} | 1 ], fill arrows tip
'tr', <val>, tip length with respect to intensity or absolute length if is a string [ <value> <value as string> {0.1} ]
'fi', <deg>, tip angle [ 30 ]
'z', <val>, z level, value or array size x, y, u and v [ 0 ]

The screenshot was created with:

[x,y] = meshgrid(-2:.2:2,-1:.15:1);
z = x .* exp(-x.^2 - y.^2);
[u,v] = gradient(z,.2,.15);
vfield(x,y,.3*u,.3*v,z), colorbar
axis equal

引用格式

M MA (2024). vfield (https://www.mathworks.com/matlabcentral/fileexchange/8652-vfield), MATLAB Central File Exchange. 检索来源 .

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

启发作品: vfield_color

Community Treasure Hunt

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

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