extractFigData
Extracts XData & YData for each line given a Figure.
This method could be useful where old simulation results have been saved only as figures.
Accepts a handle to the figure. The current figure is chosen if no argument is passed in.
Outputs 'data' is a cell array whose each cell corresponds to a line (first row XData; second row YData), when only a single set of axes exists on the figure.
If there are multiple sets of axes present (e.g. as with subplots), a cell array containing a cell array as above per each set of axes would be output.
Cite As
Damith Senaratne (2026). extractFigData (https://au.mathworks.com/matlabcentral/fileexchange/32516-extractfigdata), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
Tags
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.0.0.0 |
