3D/2D vector field plotter

This function can plot both 3D and 2D vector field based on the input symbolic expression ...
18.3K Downloads
Updated 4 Apr 2005

No License

vectline is "vector field line plotter". Depending on the dimension of coordinate axis, vectline can plot both 3D and 2D vector field line.

Example for 2D field
>> syms x y
>> F = [-y, x];
>> vectline(F,[x,y],[-1,1,-1,1])

Example for 3D field

>> syms x y z
>> F = [x*y^2, x*y, z];
>> vectline(F,[x,y,z],[-1,1,-2,3,1,3])

Cite As

Rentian Xiong (2024). 3D/2D vector field plotter (https://www.mathworks.com/matlabcentral/fileexchange/7338-3d-2d-vector-field-plotter), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R13
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Vector Fields in Help Center and MATLAB Answers

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes
1.0.0.0