vfield

Version 1.0.0.0 (2,25 ko) par M MA
Plot 2D velocity field.
3,1K téléchargements
Mise à jour 6 oct. 2005

Afficher la licence

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

Citation pour cette source

M MA (2026). vfield (https://fr.mathworks.com/matlabcentral/fileexchange/8652-vfield), MATLAB Central File Exchange. Extrait(e) le .

Compatibilité avec les versions de MATLAB
Créé avec R12
Compatible avec toutes les versions
Plateformes compatibles
Windows macOS Linux
Catégories
En savoir plus sur Vector Fields dans Help Center et MATLAB Answers
Remerciements

A inspiré : vfield_color

Version Publié le Notes de version
1.0.0.0