Why am I unable to open the GUI I created in MATLAB 7.0 (R14) in MATLAB 6.5.1 (R13SP1)
2 次查看(过去 30 天)
显示 更早的评论
If I try to run a GUI (which I created or modified using MATLAB 7.0 (R14) in MATLAB 6.5.1 or earlier, I receive an error message:
??? Error using ==> load
Unable to read MAT file C:\MATLAB6p5p1\work\untitled.fig
See FILEFORMATS for a list of known file types and the functions used to read them.
Error in ==> C:\MATLAB6p5p1\toolbox\matlab\iofun\hgload.m
On line 45 ==> fileVars = load(filename,'-mat');
采纳的回答
MathWorks Support Team
2009-6-27
In MATLAB 7.0 (R14), MAT-files are saved using compression by default. Figure files are a type of MAT-file, so they are also saved with compression. In order to use figure files from MATLAB 7.0 (R14) in earlier versions of MATLAB, you can modify your preferences so they are not saved with compression. To do this, select the following:
File -> Preferences -> General -> MAT-Files ->
Select "Ensure backward compatibility (-v6)"
However, a separate but related issue is that the objects created in MATLAB 7.0 (R14) might not exist in MATLAB 6.5 (R13). Most of the graphics functions accept a first input of 'v6', which is utilized to create the older version of the object:
plot('v6',1:10)
0 个评论
更多回答(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!