Graph of a 2D vector field equation and its divergence

버전 2.0.1 (2.29 KB) 작성자: Roche de Guzman
Visualize vector field using quiver and divergence using filled contour at given 2D coordinates
다운로드 수: 106
업데이트 날짜: 2019/2/23

라이선스 보기

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

인용 양식

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. 검색됨 .

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 example of a vector function

1.0.0