Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: error"Attempt to reference field of non-structure array"
Date: Thu, 30 Jul 2009 08:55:10 +0000 (UTC)
Organization: Uofc
Lines: 25
Message-ID: <h4rn5e$6jk$1@fred.mathworks.com>
References: <g27ddf$2gn$1@fred.mathworks.com> <g28r6k$b3o$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 1248944110 6772 172.30.248.38 (30 Jul 2009 08:55:10 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Thu, 30 Jul 2009 08:55:10 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1662491
Xref: news.mathworks.com comp.soft-sys.matlab:559543


"Steven Lord" <slord@mathworks.com> wrote in message <g28r6k$b3o$1@fred.mathworks.com>...
> 
> "lichao qi" <qilichao1106@126.com> wrote in message 
> news:g27ddf$2gn$1@fred.mathworks.com...
> > when i open a finished gui .fig file with the guide,it is
> > ok.However the error happen once i double click it.do
> > anybody know why?
> 
> There are two pieces to a GUI generated by GUIDE -- the FIG-file and the 
> M-file.  You should run your GUI by running the M-file -- it does some setup 
> then opens the FIG-file.  When you open the FIG-file directly by 
> double-clicking on it in the Current Directory browser (which is where I 
> assume you double-clicked it) you open the FIG-file without doing the 
> M-file's setup first, and I'm pretty sure that's what causes the error you 
> described.
> 
> -- 
> Steve Lord
> slord@mathworks.com 
> 
> 


Attempt to reference field of non-structure array ! 
I always get this error and some time it gone by itself. Yesterday one i was calling a funtion it was giving me error on some line. What this error means can some explain it in a simple maner