No License

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video

Highlights from
COLORVFIELD3 Colored 3D Vector Field Plotter

Be the first to rate this file! 4 Downloads (last 30 days) File Size: 2.96 KB File ID: #17755 Version: 1.0
image thumbnail

COLORVFIELD3 Colored 3D Vector Field Plotter



26 Nov 2007 (Updated )

Plots 3D vectors colored according to their lengths.

| Watch this File

File Information

COLORVFIELD3 Colored 3D Vector Field Plotter.

COLORVFIELD3(X,Y,Z,U,V,W) plots colored vectors with components (u,v,w) at the points (x,y,z). 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.

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

X = linspace(-10,10,32);
Y = linspace(0, 0, 32);
Z = linspace(0, 0, 32);
U = linspace(-1,-5,32);
V = linspace(1,5,32);
W = linspace(0, 0, 32);
colorvfield3(X,Y,Z,U,V,W,16); % plot 16 color levels
title('3D Vectors Plotted with Color Map (colorvfield3.m)')

MATLAB release MATLAB 7.4 (R2007a)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.

Contact us