Colored 2D Vector Field Plotter

Plots 2D vectors colored according to their lengths.
1,8K Descargas
Actualizado 27 nov 2007

Sin licencia

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 (2025). Colored 2D Vector Field Plotter (https://es.mathworks.com/matlabcentral/fileexchange/17754-colored-2d-vector-field-plotter), MATLAB Central File Exchange. Recuperado .

Compatibilidad con la versión de MATLAB
Se creó con R2007a
Compatible con cualquier versión
Compatibilidad con las plataformas
Windows macOS Linux
Categorías
Más información sobre Vector Fields en Help Center y MATLAB Answers.

Community Treasure Hunt

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

Start Hunting!
Versión Publicado Notas de la versión
1.0.0.0