Version 2011 produces .FIG file unreadable by version 2006

After modifying a .FIG file using GUIDE in version 2011b, the file is unreadable by version 2006a (segmentation violation in m_interpreter.dll). It appears that GUIDE has no provision to save files in older formats. Is there another way to solve this problem? This is a serious limitation, and is making me rethink the use of Matlab at all beyond tinkering.

回答 (3 件)

Paulo Silva
Paulo Silva 2011 年 3 月 24 日

0 投票

Try exporting the GUI using GUIDE in matlab 2011b, go to File, Export, it produces just one m file that you can run without the need of the fig file.

1 件のコメント

Walter Roberson
Walter Roberson 2011 年 3 月 25 日
This might, however, include code that is incompatible with 2006a.

サインインしてコメントする。

Walter Roberson
Walter Roberson 2011 年 3 月 24 日

0 投票

This is expected: a .fig file is a Matlab .mat file with a different file extension, and there have been a number of new object types added after 2006a that 2006a would not be able to read.
You could try using
FigData = load('YourFigureName.fig','-mat');
save('YourNewFigureName.fig','-struct','-v7')
2006b, the version after your target, introduced the latest save file version, -v7.3, so try saving with -v7 . If there are objects it still might not work.
Matt Fig
Matt Fig 2011 年 3 月 24 日

0 投票

You also could try:
hgsave(fhandle,'filename','-v6')
Then opening the file in 2006a with HGLOAD.

カテゴリ

ヘルプ センター および File ExchangeCreating, Deleting, and Querying Graphics Objects についてさらに検索

製品

質問済み:

2011 年 3 月 24 日

Community Treasure Hunt

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

Start Hunting!

Translated by