Extract data from line plots in a MATLAB Figure

This function will extract data from the given axes of the Matlab figure.
8 téléchargements
Mise à jour 23 sept. 2023

Afficher la licence

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

Citation pour cette source

Jagadeesh Korukonda (2024). Extract data from line plots in a MATLAB Figure (https://www.mathworks.com/matlabcentral/fileexchange/135817-extract-data-from-line-plots-in-a-matlab-figure), MATLAB Central File Exchange. Récupéré le .

Compatibilité avec les versions de MATLAB
Créé avec R2022b
Compatible avec toutes les versions
Plateformes compatibles
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!
Version Publié le Notes de version
1.0.0