<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/170482</link>
    <title>MATLAB Central Newsreader - error&quot;Attempt to reference field of non-structure array&quot;</title>
    <description>Feed for thread: error&quot;Attempt to reference field of non-structure array&quot;</description>
    <language>en-us</language>
    <copyright>&amp;copy;1994-2012 by MathWorks, Inc.</copyright>
    <webmaster>webmaster@mathworks.com</webmaster>
    <generator>MATLAB Central Newsreader</generator>
    <docs>http://blogs.law.harvard.edu/tech/rss</docs>
    <ttl>60</ttl>
    <image>
      <title>MathWorks</title>
      <url>http://www.mathworks.com/images/membrane_icon.gif</url>
    </image>
    <item>
      <pubDate>Thu, 05 Jun 2008 00:53:03 -0400</pubDate>
      <title>error&quot;Attempt to reference field of non-structure array&quot;</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/170482#435921</link>
      <author>lichao qi</author>
      <description>when i open a finished gui .fig file with the guide,it is &lt;br&gt;
ok.However the error happen once i double click it.do &lt;br&gt;
anybody know why?</description>
    </item>
    <item>
      <pubDate>Thu, 05 Jun 2008 01:54:03 -0400</pubDate>
      <title>Re: error</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/170482#435927</link>
      <author>Erik </author>
      <description>&quot;lichao qi&quot; &amp;lt;qilichao1106@126.com&amp;gt; wrote in message&lt;br&gt;
&amp;lt;g27ddf$2gn$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; when i open a finished gui .fig file with the guide,it is &lt;br&gt;
&amp;gt; ok.However the error happen once i double click it.do &lt;br&gt;
&amp;gt; anybody know why?&lt;br&gt;
&lt;br&gt;
Can you elaborate a bit? What are you clicking on? The&lt;br&gt;
figure background? Maybe attach some code as well. I wish I&lt;br&gt;
could read minds, but I can't.</description>
    </item>
    <item>
      <pubDate>Thu, 05 Jun 2008 03:38:02 -0400</pubDate>
      <title>Re: error</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/170482#435935</link>
      <author>Image Analyst</author>
      <description>&quot;Erik &quot; &amp;lt;emiehling@gmail.com&amp;gt; wrote in message &lt;br&gt;
&amp;lt;g27gvr$7pq$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &quot;lichao qi&quot; &amp;lt;qilichao1106@126.com&amp;gt; wrote in message&lt;br&gt;
&amp;gt; &amp;lt;g27ddf$2gn$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &amp;gt; when i open a finished gui .fig file with the guide,it &lt;br&gt;
is &lt;br&gt;
&amp;gt; &amp;gt; ok.However the error happen once i double click it.do &lt;br&gt;
&amp;gt; &amp;gt; anybody know why?&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Can you elaborate a bit? What are you clicking on? The&lt;br&gt;
&amp;gt; figure background? Maybe attach some code as well. I wish &lt;br&gt;
I&lt;br&gt;
&amp;gt; could read minds, but I can't.&lt;br&gt;
&lt;br&gt;
------------------------------------------------------------&lt;br&gt;
Erik:&lt;br&gt;
Well then you just need to purchase the &quot;Mind Reading &lt;br&gt;
Toolkit.&quot;  It's been recently updated for R2008a.  There's &lt;br&gt;
a nifty function called &quot;GenerateAnswer()&quot; that's &lt;br&gt;
especially designed for newgroup postings.  It's called &lt;br&gt;
like this:&lt;br&gt;
GenerateAnswer('Help');&lt;br&gt;
GenerateAnswer('Help me');&lt;br&gt;
GenerateAnswer('Please help');&lt;br&gt;
GenerateAnswer('Please Help Me');&lt;br&gt;
GenerateAnswer('i need help!!!');&lt;br&gt;
GenerateAnswer('Help us?!!');&lt;br&gt;
GenerateAnswer('matlab');&lt;br&gt;
GenerateAnswer('MATLAB help');&lt;br&gt;
GenerateAnswer('error');&lt;br&gt;
GenerateAnswer('matlab error');&lt;br&gt;
GenerateAnswer('Urgent help needed');&lt;br&gt;
GenerateAnswer('Why doesn't this work?');&lt;br&gt;
GenerateAnswer('HELP GUI');&lt;br&gt;
GenerateAnswer('big problem');&lt;br&gt;
GenerateAnswer('newbie question');&lt;br&gt;
GenerateAnswer('a dare');&lt;br&gt;
GenerateAnswer('tricky');&lt;br&gt;
GenerateAnswer('anyone can help me');&lt;br&gt;
GenerateAnswer('im also having problems');&lt;br&gt;
GenerateAnswer('How can I do this using matlab');&lt;br&gt;
GenerateAnswer('simple GUI question');&lt;br&gt;
GenerateAnswer('sos');&lt;br&gt;
GenerateAnswer('help needed!!!!');&lt;br&gt;
GenerateAnswer('ERROR MESSAGE');&lt;br&gt;
GenerateAnswer('[no subject]');&lt;br&gt;
GenerateAnswer('hi');&lt;br&gt;
GenerateAnswer('test');&lt;br&gt;
GenerateAnswer('cheap Nike air Jordan');&lt;br&gt;
GenerateAnswer('discount shoes');&lt;br&gt;
and my personal favorite:&lt;br&gt;
GenerateAnswer('Urgent help needed - &lt;br&gt;
pleeeeeeeeeeeze!!!!!!!');&lt;br&gt;
just to mention a few recent actual postings plus a few of &lt;br&gt;
our recurring favorites.  There are also some new functions &lt;br&gt;
used thus:&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;sarcasticmode on (or off)&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;bozofilter on (or off)&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;let_Walter_Answer()&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;punt_to_John()&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;ask_Lord_for_help()&lt;br&gt;
and a gag/joke function&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;run_marcos_code() &lt;br&gt;
which simulates a crash of your computer.&lt;br&gt;
&lt;br&gt;
I've been using it and it's worth the $1000 purchase &lt;br&gt;
price.  How do the other users like it?  Any functions that &lt;br&gt;
the toolikt is missing and we should request for the next &lt;br&gt;
release?&lt;br&gt;
&lt;br&gt;
Regards,&lt;br&gt;
ImageAnalyst</description>
    </item>
    <item>
      <pubDate>Thu, 05 Jun 2008 08:18:01 -0400</pubDate>
      <title>Re: error</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/170482#435951</link>
      <author>lichao qi</author>
      <description>&quot;Erik &quot; &amp;lt;emiehling@gmail.com&amp;gt; wrote in message &lt;br&gt;
&amp;lt;g27gvr$7pq$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &quot;lichao qi&quot; &amp;lt;qilichao1106@126.com&amp;gt; wrote in message&lt;br&gt;
&amp;gt; &amp;lt;g27ddf$2gn$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &amp;gt; when i open a finished gui .fig file with the guide,it &lt;br&gt;
is &lt;br&gt;
&amp;gt; &amp;gt; ok.However the error happen once i double click it.do &lt;br&gt;
&amp;gt; &amp;gt; anybody know why?&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Can you elaborate a bit? What are you clicking on? The&lt;br&gt;
&amp;gt; figure background? Maybe attach some code as well. I wish &lt;br&gt;
I&lt;br&gt;
&amp;gt; could read minds, but I can't.&lt;br&gt;
thank you for your attention ,i think i did not make it &lt;br&gt;
clear.i mean error happens when i double click the figure &lt;br&gt;
file.Actually i have solved the problem.while programing ,i &lt;br&gt;
used the command line &quot;set&lt;br&gt;
(handle.out,'string','output')&quot;(handle.out is a handle &lt;br&gt;
corresponding to a Edit Text)in the opening function,and it &lt;br&gt;
worked well.then i used the global varible &quot;handles.out&quot; in &lt;br&gt;
a callback funtion ,for i thought  the varible had been &lt;br&gt;
defined.NO!it was not .so the error mentioned above &lt;br&gt;
happened.Everything is all right after i defined the  &lt;br&gt;
varible handle.out with command line&quot;handle.out=hObject&quot; in &lt;br&gt;
the out_CreatFcn funtion.</description>
    </item>
    <item>
      <pubDate>Thu, 05 Jun 2008 13:54:27 -0400</pubDate>
      <title>Re: error&quot;Attempt to reference field of non-structure array&quot;</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/170482#436012</link>
      <author>Steven Lord</author>
      <description>&lt;br&gt;
&quot;lichao qi&quot; &amp;lt;qilichao1106@126.com&amp;gt; wrote in message &lt;br&gt;
news:g27ddf$2gn$1@fred.mathworks.com...&lt;br&gt;
&amp;gt; when i open a finished gui .fig file with the guide,it is&lt;br&gt;
&amp;gt; ok.However the error happen once i double click it.do&lt;br&gt;
&amp;gt; anybody know why?&lt;br&gt;
&lt;br&gt;
There are two pieces to a GUI generated by GUIDE -- the FIG-file and the &lt;br&gt;
M-file.  You should run your GUI by running the M-file -- it does some setup &lt;br&gt;
then opens the FIG-file.  When you open the FIG-file directly by &lt;br&gt;
double-clicking on it in the Current Directory browser (which is where I &lt;br&gt;
assume you double-clicked it) you open the FIG-file without doing the &lt;br&gt;
M-file's setup first, and I'm pretty sure that's what causes the error you &lt;br&gt;
described.&lt;br&gt;
&lt;br&gt;
-- &lt;br&gt;
Steve Lord&lt;br&gt;
slord@mathworks.com </description>
    </item>
    <item>
      <pubDate>Thu, 30 Jul 2009 08:55:10 -0400</pubDate>
      <title>Re: error&quot;Attempt to reference field of non-structure array&quot;</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/170482#669357</link>
      <author>guj </author>
      <description>&quot;Steven Lord&quot; &amp;lt;slord@mathworks.com&amp;gt; wrote in message &amp;lt;g28r6k$b3o$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &quot;lichao qi&quot; &amp;lt;qilichao1106@126.com&amp;gt; wrote in message &lt;br&gt;
&amp;gt; news:g27ddf$2gn$1@fred.mathworks.com...&lt;br&gt;
&amp;gt; &amp;gt; when i open a finished gui .fig file with the guide,it is&lt;br&gt;
&amp;gt; &amp;gt; ok.However the error happen once i double click it.do&lt;br&gt;
&amp;gt; &amp;gt; anybody know why?&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; There are two pieces to a GUI generated by GUIDE -- the FIG-file and the &lt;br&gt;
&amp;gt; M-file.  You should run your GUI by running the M-file -- it does some setup &lt;br&gt;
&amp;gt; then opens the FIG-file.  When you open the FIG-file directly by &lt;br&gt;
&amp;gt; double-clicking on it in the Current Directory browser (which is where I &lt;br&gt;
&amp;gt; assume you double-clicked it) you open the FIG-file without doing the &lt;br&gt;
&amp;gt; M-file's setup first, and I'm pretty sure that's what causes the error you &lt;br&gt;
&amp;gt; described.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; -- &lt;br&gt;
&amp;gt; Steve Lord&lt;br&gt;
&amp;gt; slord@mathworks.com &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &lt;br&gt;
&lt;br&gt;
&lt;br&gt;
Attempt to reference field of non-structure array ! &lt;br&gt;
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</description>
    </item>
    <item>
      <pubDate>Thu, 30 Jul 2009 13:18:23 -0400</pubDate>
      <title>Re: error&quot;Attempt to reference field of non-structure array&quot;</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/170482#669425</link>
      <author>Steven Lord</author>
      <description>&lt;br&gt;
&quot;guj &quot; &amp;lt;gulatiakshay@gmail.com&amp;gt; wrote in message &lt;br&gt;
news:h4rn5e$6jk$1@fred.mathworks.com...&lt;br&gt;
&amp;gt; &quot;Steven Lord&quot; &amp;lt;slord@mathworks.com&amp;gt; wrote in message &lt;br&gt;
&amp;gt; &amp;lt;g28r6k$b3o$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt; &quot;lichao qi&quot; &amp;lt;qilichao1106@126.com&amp;gt; wrote in message&lt;br&gt;
&amp;gt;&amp;gt; news:g27ddf$2gn$1@fred.mathworks.com...&lt;br&gt;
&amp;gt;&amp;gt; &amp;gt; when i open a finished gui .fig file with the guide,it is&lt;br&gt;
&amp;gt;&amp;gt; &amp;gt; ok.However the error happen once i double click it.do&lt;br&gt;
&amp;gt;&amp;gt; &amp;gt; anybody know why?&lt;br&gt;
&amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt; There are two pieces to a GUI generated by GUIDE -- the FIG-file and the&lt;br&gt;
&amp;gt;&amp;gt; M-file.  You should run your GUI by running the M-file -- it does some &lt;br&gt;
&amp;gt;&amp;gt; setup&lt;br&gt;
&amp;gt;&amp;gt; then opens the FIG-file.  When you open the FIG-file directly by&lt;br&gt;
&amp;gt;&amp;gt; double-clicking on it in the Current Directory browser (which is where I&lt;br&gt;
&amp;gt;&amp;gt; assume you double-clicked it) you open the FIG-file without doing the&lt;br&gt;
&amp;gt;&amp;gt; M-file's setup first, and I'm pretty sure that's what causes the error &lt;br&gt;
&amp;gt;&amp;gt; you&lt;br&gt;
&amp;gt;&amp;gt; described.&lt;br&gt;
&amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt; -- &lt;br&gt;
&amp;gt;&amp;gt; Steve Lord&lt;br&gt;
&amp;gt;&amp;gt; slord@mathworks.com&lt;br&gt;
&amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Attempt to reference field of non-structure array !&lt;br&gt;
&amp;gt; I always get this error and some time it gone by itself. Yesterday one i &lt;br&gt;
&amp;gt; was calling a funtion it was giving me error on some line. What this error &lt;br&gt;
&amp;gt; means can some explain it in a simple maner&lt;br&gt;
&lt;br&gt;
The short version is that you're taking a variable that is not a struct &lt;br&gt;
array:&lt;br&gt;
&lt;br&gt;
x = 1:10;&lt;br&gt;
&lt;br&gt;
and trying to ask for a field of that variable, which doesn't work because &lt;br&gt;
regular numeric arrays don't have fields.&lt;br&gt;
&lt;br&gt;
y = x.structFieldIndexingWillError&lt;br&gt;
&lt;br&gt;
To determine why you receive this error, run your code using the debugging &lt;br&gt;
tools provided in the Editor.  If you open up the Help Browser (using the &lt;br&gt;
DOC function) and navigate to the Desktop Tools and Development Environment &lt;br&gt;
item under the MATLAB item in the tree, one of the items should be &quot;Editing &lt;br&gt;
and Debugging M-Files&quot;.  Read through that to learn how to debug your code &lt;br&gt;
and locate the cause of this error.&lt;br&gt;
&lt;br&gt;
-- &lt;br&gt;
Steve Lord&lt;br&gt;
slord@mathworks.com </description>
    </item>
  </channel>
</rss>

