Extract X and Y data points from a plot

Open the figure, run the script, and get back your plotted data points.
160 Downloads
Updated 1 Feb 2016

View License

Often times, you would have plotted some data and deleted them, but would have saved your figure file. How do you get back the data points from the figure? Open the figure, run this script, and you will have your X and Y data points in your workspace

Cite As

Kevin Michael (2024). Extract X and Y data points from a plot (https://www.mathworks.com/matlabcentral/fileexchange/55198-extract-x-and-y-data-points-from-a-plot), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2014a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Graphics Object Identification in Help Center and MATLAB Answers
Tags Add Tags

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes
1.2.0.0

Added comments

1.1.0.0

Updated for 3D plots

1.0.0.0