Display two opposite direction arrow for two curves in one plot have different direction.

5 views (last 30 days)
I have this graph, picture attached. How can i add arrow for each curve with opposite direction ? Each curve represent direction in opposite to the counterpart.

Accepted Answer

Star Strider
Star Strider on 15 Feb 2015
No graph appeared, but consider using the quiver function.
  4 Comments
saad
saad on 18 Feb 2015
When i add this comment
h=annotation('arrow',[.45 .55],[.45 .55]); c = h.Color; h.Color = 'r';
This error come out
"Attempt to reference field of non-structure array."
Star Strider
Star Strider on 18 Feb 2015
The current online documentation is for R2014b. If you have an earlier version, use the set funciton:
h=annotation('arrow',[.45 .55],[.45 .55]);
set(h, 'Color','r')
This worked for me when I tried it. (I have R2014b, so the structure reference also worked when I ran it.)

Sign in to comment.

More Answers (0)

Categories

Find more on 2-D and 3-D Plots 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!