splinedraw

Draw line manually over plot and retrieve coordinates
1.4K Downloads
Updated 24 Jun 2021

View License

Splinedraw will let you draw a curve in the current plot by setting/deleting/moving points which are then connected by a spline. The points' coordinates are printed in the command window.
Can be used to draw a trend line manually, to retrieve coordinates and spline coefficients from some curve or image.
Find Excel version on project website.

Cite As

Henning Francke (2024). splinedraw (https://www.mathworks.com/matlabcentral/fileexchange/29495-splinedraw), MATLAB Central File Exchange. Retrieved .

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

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes
1.3.2.0

Added write coordinates to workspace

1.3.1.0

- fixed bug at end of draw by replacing 'any' with '~isempty'
- changed names
- changed event command syntax to bracketed argument
- added/changed comments

1.3.0.0

Fixed behaviour with multiple plots. Added "continue editing"
Added end editing by doubleclick
Added point color switching red/black for Draw Mode on/off

1.1.0.0

Only changed the title, description and tags.

1.0.0.0