Graph of a 3D vector field and its divergence and curl
Versión 2.0.1 (2,64 KB) por
Roche de Guzman
Visualize vector field quiver, divergence (slice), and curl (quiver) at given 3D coordinates
%% 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
Citar como
Roche de Guzman (2025). 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. Recuperado .
Compatibilidad con la versión de MATLAB
Se creó con
R2018a
Compatible con cualquier versión
Compatibilidad con las plataformas
Windows macOS LinuxCategorías
- MATLAB > Graphics > 2-D and 3-D Plots > Vector Fields >
Más información sobre Vector Fields en Help Center y MATLAB Answers.
Etiquetas
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Descubra Live Editor
Cree scripts con código, salida y texto formateado en un documento ejecutable.