You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
This function used to extract (x,y) data from the matlab figure.
It will work with multiple lines also.
syntax
x = -pi:pi/25:pi;
y = sin(x);
plot(x,y,'-k'); hold on
[x,y] = myfigextract(gca);
indices = round(linspace(1,length(x{1}),10));
plot(x{1},y{1},'ro','markerindices',indices);hold off
Cite As
Jagadeesh Korukonda (2026). Extract data from line plots in a MATLAB Figure (https://se.mathworks.com/matlabcentral/fileexchange/135817-extract-data-from-line-plots-in-a-matlab-figure), MATLAB Central File Exchange. Retrieved .
General Information
- Version 1.0.0 (1.13 KB)
MATLAB Release Compatibility
- Compatible with any release
Platform Compatibility
- Windows
- macOS
- Linux
| Version | Published | Release Notes | Action |
|---|---|---|---|
| 1.0.0 |
