You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
GETFIGDATA extracts the xyz data from a FIG file.
Syntax:
GETFIGDATA(filename);
[x,y,z] = GETFIGDATA(filename);
[x,y,z] = GETFIGDATA(filename,n,Type);
If the figure contains multiple axes, the axis number (n) to be used must be specified. By default, the first axis is used.
If the figure contains multiple plot types (line, scatter, etc.), the desired type must be specified, otherwise "line" will be selected by default.
Plot types can be inspected using GETFIGDATA with no output arguments.
Each data series is an element of the returned cell arrays: [x{i},y{i},z{i}] must be used to access the ith data series.
Example:
myfigfile = 'simulation_output.fig';
GETFIGDATA(myfigfile)
[x,y] = GETFIGDATA(myfigfile);
plot(x{1},y{1})
Author:
Ildeberto de los Santos Ruiz
idelossantos@ittg.edu.mx
See also OPENFIG, SAVEFIG.
Cite As
Ildeberto de los Santos Ruiz (2026). getfigdata (https://au.mathworks.com/matlabcentral/fileexchange/72980-getfigdata), MATLAB Central File Exchange. Retrieved .
General Information
- Version 1.1.1 (1.65 KB)
MATLAB Release Compatibility
- Compatible with any release
Platform Compatibility
- Windows
- macOS
- Linux
