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

1 次查看(过去 30 天)
2015bのGUIで作成したFile(mファイル)を2007bで開こうとすると'invalid Figure file format'というエラーが起きて開けません。 諸事情のため、2007bを使用しなければなりません。

采纳的回答

Walter Roberson
Walter Roberson 2017-2-23
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 个评论
Takafumi
Takafumi 2017-2-27
残念ながら、MATLABには、下位互換性は保障しておりません。 少しずつ、下位バージョンに落としていくなどして、試しながら修正する方法しか無いと思われます。

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Migrate GUIDE Apps 的更多信息

产品

Community Treasure Hunt

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

Start Hunting!

Translated by