2007bと2015bのGUIには互換性が無いのでしょうか?invalid Figure file format
1 次查看(过去 30 天)
显示 更早的评论
2015bのGUIで作成したFile(mファイル)を2007bで開こうとすると'invalid Figure file format'というエラーが起きて開けません。 諸事情のため、2007bを使用しなければなりません。
0 个评论
采纳的回答
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 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Migrate GUIDE Apps 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!