Path: news.mathworks.com!not-for-mail
From: "matt dash" <md222@mail.gatech.edu>
Newsgroups: comp.soft-sys.matlab
Subject: Re: gui problem
Date: Wed, 16 Apr 2008 16:14:02 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 22
Message-ID: <fu58ka$ktd$1@fred.mathworks.com>
References: <fu0llq$iu6$1@fred.mathworks.com> <fu2l4i$nf8$1@fred.mathworks.com> <fu2rpb$d4j$1@fred.mathworks.com> <fu3b5g$1bh$1@fred.mathworks.com>
Reply-To: "matt dash" <md222@mail.gatech.edu>
NNTP-Posting-Host: webapp-02-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1208362442 21421 172.30.248.37 (16 Apr 2008 16:14:02 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Wed, 16 Apr 2008 16:14:02 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 939004
Xref: news.mathworks.com comp.soft-sys.matlab:463343


Sorry for the delayed response... 

The error message seems to be saying that either
handles.listbox1 or timeplot5 is a structure (which means it
has another level of variables below it, like
handles.listbox1.anothervariable. 

I'm guessing it has something to do with the way you're
using guidata to get the variable you need in the callback
(since guidata usually returns a structure). If you still
need help, could you maybe post an updated version of your
code that shows how you're using guidata? (And also shows
the full code for the function listbox1_callback that is
giving the error)

If you want a "quick fix" try putting a break point at the
line that gives the error, then in your command window type
handles.listbox1 and timeplot5 and see if either of them is
a structure. (a structure will display as a list of names
followed by colons and their value). If one of them is,
maybe you can find where the value you need is stored and
just rewrite your code to point to that field of the structure.