Colored 2D Vector Field Plotter

Plots 2D vectors colored according to their lengths.

Ahora está siguiendo esta publicación

COLORVFIELD Colored 2D Vector Field Plotter.

COLORVFIELD(X,Y,U,V) plots colored vectors with components (u,v) at the points (x,y). The vectors are colored using the jet color map (with the smallest vectors colored blue the largest colored red) and are divided into 32 discrete color levels.

COLORVFIELD(X,Y,U,V,NUMBER_COLOR_LEVELS) divides the color map into NUMBER_COLOR_LEVELS dicrete color levels.

Example:
X = linspace(-10,10,32);
Y = linspace(0, 0, 32);
U = linspace(-1,-5,32);
V=linspace(1,5,32);
colorvfield(X,Y,U,V,16); % plot 16 color levels
title('Vectors Plotted with Color Map (colorvfield.m)')
axis([-12.25,11.75,-0.25,4.75])
xlabel('X')
ylabel('Y')

Citar como

Michael Sullivan (2026). Colored 2D Vector Field Plotter (https://es.mathworks.com/matlabcentral/fileexchange/17754-colored-2d-vector-field-plotter), MATLAB Central File Exchange. Recuperado .

Categorías

Más información sobre Vector Fields en Help Center y MATLAB Answers.

Información general

Compatibilidad con la versión de MATLAB

  • Compatible con cualquier versión

Compatibilidad con las plataformas

  • Windows
  • macOS
  • Linux
Versión Publicado Notas de la versión Action
1.0.0.0