Why am I unable to open the GUI I created in MATLAB 7.0 (R14) in MATLAB 6.5.1 (R13SP1)

조회 수: 1 (최근 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
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개)

카테고리

Help CenterFile Exchange에서 Workspace Variables and MAT Files에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by