find code for divergence and curl
10 views (last 30 days)
Show older comments
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
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.
John BG
on 14 Apr 2018
Hi Almuathir
people with similar questions start reading this
and this
try to modify the examples in order to solve the questions.
regards
John BG
Answers (0)
See Also
Categories
Find more on Audio and Video Data in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!