How to plot 2D field profiles with field vectors?

4 views (last 30 days)
I want to plot like the first attached surface plot with field lines and arrows. I managed to plot the second image so far. Please help.

Accepted Answer

Image Analyst
Image Analyst on 4 Jul 2022
Try quiver
Image Analyst
Image Analyst on 5 Jul 2022
contour or fcontour plots those lines but I don't believe it puts arrows. So you dould use that then create the arrows and place them afterwards.
Also see this answer:

Sign in to comment.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!

Translated by