Graph of a 2D vector field equation and its divergence
Versión 2.0.1 (2,29 KB) por
Roche de Guzman
Visualize vector field using quiver and divergence using filled contour at given 2D coordinates
%% Divergence of Vector Function with 2 Independent Variables
% by Prof. Roche C. de Guzman
%% Given
f = @(x,y) [(-4*x).*exp(-(x.^2)-y.^2); (-4*y).*exp(-(x.^2)-y.^2)]; % anonymous fx: f(x,y)
xi = -2; xf = 1; yi = -2; yf = 1; n = 10; % independent variables: initial and final values, and number of elements
Citar como
Roche de Guzman (2024). Graph of a 2D vector field equation and its divergence (https://www.mathworks.com/matlabcentral/fileexchange/69287-graph-of-a-2d-vector-field-equation-and-its-divergence), 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.