getfigdata

GETFIGDATA extracts the xyz data from a FIG file.
99.0 次下载
更新时间 2020/7/10

查看许可证

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.

引用格式

Ildeberto de los Santos Ruiz (2024). getfigdata (https://www.mathworks.com/matlabcentral/fileexchange/72980-getfigdata), MATLAB Central File Exchange. 检索时间: .

MATLAB 版本兼容性
创建方式 R2020a
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Printing and Saving 的更多信息

Community Treasure Hunt

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

Start Hunting!
版本 已发布 发行说明
1.1.1

Minor bugs fixed.

1.1

Help information added.

1.0.2

Support for different plot types was added.

1.0.1

Added support for multiple axes.

1.0.0