Filter löschen
Filter löschen

2007bと2015​bのGUIには互換性​が無いのでしょうか?​invalid Figure file format

1 Ansicht (letzte 30 Tage)
Yuki Watanabe
Yuki Watanabe am 23 Feb. 2017
Kommentiert: Takafumi am 27 Feb. 2017
2015bのGUIで作成したFile(mファイル)を2007bで開こうとすると'invalid Figure file format'というエラーが起きて開けません。 諸事情のため、2007bを使用しなければなりません。

Akzeptierte Antwort

Walter Roberson
Walter Roberson am 23 Feb. 2017
This is expected.
Generally, HG2 (Handle Graphics 2) MATLAB releases (R2014b and later) deliberately write graphics objects that might usable in some earlier releases.
However, there was a change in how objects were represented in a release after R2007b, so R2007b is too old to be able to read the file. My memory is telling me that R2010b is the oldest version for which there is a patch which would allow it to read the .fig files without erroring out (though that release might not be able to do anything useful with them.)
If you have access to a release at least as new as you created the .fig in GUIDE, then open the GUI in GUIDE. Then go in to the File menu and use Export. That will create a .m file containing code for the GUI, without any .fig file. You can then edit the code as needed for R2007b (for example if you used ~ in your code to ignore an input or output, then you will need to put in a variable name for versions before R2009b.)
  1 Kommentar
Takafumi
Takafumi am 27 Feb. 2017
残念ながら、MATLABには、下位互換性は保障しておりません。 少しずつ、下位バージョンに落としていくなどして、試しながら修正する方法しか無いと思われます。

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Migrate GUIDE Apps finden Sie in Help Center und File Exchange

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by