Updated dualcursor function that displays and outputs the slope, average, and standard deviation.


Updated 17 Sep 2013

View License

This is just an update to the original dualcursor written by Scott Hirsch (http://www.mathworks.com/matlabcentral/fileexchange/2875-dualcursor).

This version displays the slope between the cursors, and calculates the average and standard deviation of all the points between the cursors.

Usage is exactly the same as the original:
dualcursor2 on
dualcursor2 off
val=[x1 y1 x2 y2 slope avg stddev]

Also uses round2, found here: http://www.mathworks.com/matlabcentral/fileexchange/4261-round2

Cite As

Ari Feldman (2023). dualcursor2 (https://www.mathworks.com/matlabcentral/fileexchange/37021-dualcursor2), MATLAB Central File Exchange. Retrieved .

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

Inspired by: dualcursor

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes

Edited description to reflect use of round2