Borrar filtros
Borrar filtros

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

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

Respuesta aceptada

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

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Migrate GUIDE Apps en Help Center y File Exchange.

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by