Adding small slope indicating triangles to my Convergence Graph

7 views (last 30 days)
Hi everybody
I have a simple question, but I could not figure it out how to do it simply. I have a convergence plot and I would like to show the slope of the line on a small triangle like the one in the photo below.
Any help would be appreciated, thanks :)

Answers (1)

dpb
dpb on 28 Apr 2014
Just use *line* (after 'hold on') to add the lines then *text* to annotate

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!