Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Guide errors creating a simple gui
Date: Wed, 4 Jun 2008 12:24:02 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 78
Message-ID: <g261h2$ic2$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-03-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1212582242 18818 172.30.248.38 (4 Jun 2008 12:24:02 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Wed, 4 Jun 2008 12:24:02 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1406756
Xref: news.mathworks.com comp.soft-sys.matlab:472142



Hello Matlab users,

I created a simple gui (test.fig) with help of GUIDE. To get
familiar with matlab I tried to play around with the test.m
file that was made by GUIDE.
I removed the % in front of uiwait() and put it back there
afterwards. To see what changed I pressed the green triangle
(run button) of the matlab editor and got error messages
even after changing test.m back to its original state.
Then I removed the test.m file to get a new one created by
GUIDE when opening test.fig. But now GUIDE refuses to even
open the test.fig with the error messages below.

I suspect the errors come from my java version or are a
matlab bug.
But I dont know how to check what java version matlab uses
on my Suse Linux 10.2 64bit computer.

I hope somebody can help me.
regards
Michael


The error messages:
-------------------

??? Error using ==> subsindex
Function 'subsindex' is not defined for values of class
'function_handle'.

Error in ==> cellstr at 28
            c{i} = deblank(s(i,:));

Error in ==> errordlg at 47
    ErrorString = cellstr(ErrorStringIn);

Error in ==> guidefunc>showErrorDialog at 3781
h = errordlg(message, title);

Error in ==> guidefunc at 152
    showErrorDialog('Unhandled internal error in guidefunc');

Error in ==> guide at 132
    result = LayoutEditor.openLayoutEditor(filename);

Error in ==> guidetemplate>processDialogResult at 172
                guide(destfigfile);

Error in ==> guidetemplate>dialogCallback at 91
                processDialogResult(quickstartpanel);

com.mathworks.jmi.MatlabException: Error using ==> subsindex
Function 'subsindex' is not defined for values of class
'function_handle'.
	at com.mathworks.jmi.NativeMatlab.SendMatlabMessage(Native
Method)
	at
com.mathworks.jmi.NativeMatlab.sendMatlabMessage(NativeMatlab.java:211)
	at
com.mathworks.jmi.MatlabLooper.sendMatlabMessage(MatlabLooper.java:121)
	at
com.mathworks.jmi.Matlab.mtFevalConsoleOutput(Matlab.java:1465)
	at com.mathworks.jmi.MatlabWorker.feval(MatlabWorker.java:182)
	at com.mathworks.jmi.MatlabWorker.feval(MatlabWorker.java:159)
	at
com.mathworks.toolbox.matlab.guide.utils.LayoutWorker.runOnMatlabThread(LayoutWorker.java:51)
	at com.mathworks.jmi.MatlabWorker$2.run(MatlabWorker.java:73)
	at com.mathworks.jmi.MatlabWorker.start(MatlabWorker.java:226)
	at
com.mathworks.toolbox.matlab.guide.utils.LayoutWorker.start(LayoutWorker.java:70)
	at
com.mathworks.toolbox.matlab.guide.utils.LayoutWorker.fevalConsoleOutput(LayoutWorker.java:41)
	at
com.mathworks.toolbox.matlab.guide.LayoutLooper.readFigure(LayoutLooper.java:678)
	at
com.mathworks.toolbox.matlab.guide.LayoutEditor.openLayoutEditor(LayoutEditor.java:1884)
	at
com.mathworks.toolbox.matlab.guide.LayoutEditor.openLayoutEditor(LayoutEditor.java:1847)