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

版本 2.0.1 (2.6 KB) 作者: Roche de Guzman
Visualize vector field quiver, divergence (slice), and curl (quiver) at given 3D coordinates
280.0 次下载
更新时间 2019/2/23

查看许可证

%% 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

引用格式

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. 检索来源 .

MATLAB 版本兼容性
创建方式 R2018a
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Vector Fields 的更多信息

Community Treasure Hunt

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

Start Hunting!
版本 已发布 发行说明
2.0.1

Updated image.

2.0.0

Better vector function for demonstrating curl.

1.0.0