Obtaining data from a .fig file
조회 수: 9 (최근 30일)
이전 댓글 표시
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?
댓글 수: 0
채택된 답변
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.
댓글 수: 0
추가 답변 (1개)
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.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Graphics Object Identification에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!