2007bと2015bのGUIには互換性が無いのでしょうか?invalid Figure file format
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Yuki Watanabe
am 23 Feb. 2017
Kommentiert: Takafumi
am 27 Feb. 2017
2015bのGUIで作成したFile(mファイル)を2007bで開こうとすると'invalid Figure file format'というエラーが起きて開けません。 諸事情のため、2007bを使用しなければなりません。
0 Kommentare
Akzeptierte Antwort
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
am 27 Feb. 2017
残念ながら、MATLABには、下位互換性は保障しておりません。 少しずつ、下位バージョンに落としていくなどして、試しながら修正する方法しか無いと思われます。
Weitere Antworten (0)
Siehe auch
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!