Graph of a 3D vector field and its divergence and curl

Visualize vector field quiver, divergence (slice), and curl (quiver) at given 3D coordinates
280 Downloads
Aktualisiert 23 Feb 2019

Lizenz anzeigen

%% Divergence and Curl of Vector Function with 3 Independent Variables
% by Prof. Roche C. de Guzman

%% Given
f = @(x,y,z) [-2*y; x; z/10]; % anonymous fx: f(x,y)
xi = -2; xf = 2; yi = -1; yf = 1; zi = 0; zf = 3; n = 5; % independent variables: initial and final values, and number of elements

Zitieren als

Roche de Guzman (2024). Graph of a 3D vector field and its divergence and curl (https://www.mathworks.com/matlabcentral/fileexchange/69282-graph-of-a-3d-vector-field-and-its-divergence-and-curl), MATLAB Central File Exchange. Abgerufen .

Kompatibilität der MATLAB-Version
Erstellt mit R2018a
Kompatibel mit allen Versionen
Plattform-Kompatibilität
Windows macOS Linux
Kategorien
Mehr zu Vector Fields finden Sie in Help Center und MATLAB Answers

Community Treasure Hunt

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

Start Hunting!
Version Veröffentlicht Versionshinweise
2.0.1

Updated image.

2.0.0

Better vector function for demonstrating curl.

1.0.0