find code for divergence and curl

10 views (last 30 days)
Almuathir Alkindi
Almuathir Alkindi on 14 Apr 2018
Commented: John BG on 14 Apr 2018
6- (a)Write a MATLAB code that can find the divergence of a velocity vector field A from a closed cylinder encloded by ρ = 5, 0 ≤ φ ≤ 2π, and z = 5, where A = ρ^2 aρ + 2z az. Plot the vector field A and its divergence. Comment on your results.
(b)Write a MATLAB code to find the curl of vector field H = x^3 ax + 2xyz ay. Plot the vector field H and its curl, ∇ × H. Comment on your results.
  2 Comments
the cyclist
the cyclist on 14 Apr 2018
This looks like your homework is to write the code, not find the code. You'll learn more that way.
If you post what you have tried yourself, people on this forum will generally try to help you. But they will not do your homework for you.

Sign in to comment.

Answers (0)

Community Treasure Hunt

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

Start Hunting!