Obtaining data from a .fig file

2 ビュー (過去 30 日間)
Lotte Haley
Lotte Haley 2011 年 9 月 27 日
I have a 3D plot saved in a .fig file, and I no longer have the original data. How can I get the data I used to create the plot back?

採用された回答

Tigersnooze
Tigersnooze 2011 年 9 月 27 日
3D plot you say? First open the .fig file, and select the data you want to get back. Then, just type these three lines in the command window:
zdata = get(gco, 'ZDATA');
ydata = get(gco, 'YDATA');
xdata = get(gco, 'XDATA');
And you'll have all of your data back in those three vectors. gco refers to the data you've selected, so make sure you've selected data in the plot before running those lines.

その他の回答 (1 件)

Jan
Jan 2011 年 9 月 27 日
You can use some of the tools from the FEX, which convert a FIG file to an M-File:
Note, that FIG files are actually MAT files, so you can try use LOAD to read them.

カテゴリ

Help Center および File ExchangeWorkspace Variables and MAT-Files についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by