How to plot 2D field profiles with field vectors?

9 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
  2 Comments
MD AZIZ AR RAHMAN
MD AZIZ AR RAHMAN on 5 Jul 2022
I tried quiver, but it gives discreet field lines, I am looking for continuous lines
Image Analyst
Image Analyst on 5 Jul 2022
Edited: 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)

Categories

Find more on Vector Fields 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!