version (1.32 KB) by Toby Driscoll
Compute the slope between two selected points.


Updated 21 Mar 2003

View License

gslope simply waits for you to click twice on a graph and computes the slope between those points. Logarithmic scaling is automatically accounted for.

I use this for myself and in teaching to find observed convergence rates from a graph.

Cite As

Toby Driscoll (2022). gslope (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R13
Compatible with any release
Platform Compatibility
Windows macOS Linux

Inspired: gdist

Community Treasure Hunt

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

Start Hunting!