<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/264225</link>
    <title>MATLAB Central Newsreader - Size-function and &quot;;&quot;</title>
    <description>Feed for thread: Size-function and &quot;;&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>Tue, 27 Oct 2009 13:08:20 -0400</pubDate>
      <title>Size-function and &quot;;&quot;</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/264225#690025</link>
      <author>Adam Andersen L?ss?e</author>
      <description>I have this very annoying problem, that I have now encoutered a few times:&lt;br&gt;
&lt;br&gt;
Excerpt of the code:&lt;br&gt;
------&lt;br&gt;
...&lt;br&gt;
for i=1:nelb&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;sys.T{i+nelb}= [i+1 i+nelb+1 i+nelb+2]  % &quot;;&quot; gives error?!&lt;br&gt;
end&lt;br&gt;
&lt;br&gt;
size(sys.T,2)&lt;br&gt;
------&lt;br&gt;
(some other stuff is before this, but this is what seems to be causing the problems.)&lt;br&gt;
&lt;br&gt;
If the operation in the for-loop is ended with a &quot;;&quot; then &quot;size(sys.T,2)&quot; returns a value, as if the loop has not been run at all. If &quot;;&quot; is omitted it returns fine, but I of course have a very cluttered command window.&lt;br&gt;
&lt;br&gt;
If I run the program with the &quot;;&quot; and then after the program has finished type &quot;size(sys.T,2)&quot; in the command window, it returns the proper result.&lt;br&gt;
&lt;br&gt;
What is happening and how do I fix it?</description>
    </item>
    <item>
      <pubDate>Tue, 27 Oct 2009 13:20:37 -0400</pubDate>
      <title>Re: Size-function and &quot;;&quot;</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/264225#690032</link>
      <author>dpb</author>
      <description>Adam Andersen L?ss?e wrote:&lt;br&gt;
&amp;gt; I have this very annoying problem, that I have now encoutered a few times:&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Excerpt of the code:&lt;br&gt;
&amp;gt; ------&lt;br&gt;
&amp;gt; ...&lt;br&gt;
&amp;gt; for i=1:nelb&lt;br&gt;
&amp;gt;     sys.T{i+nelb}= [i+1 i+nelb+1 i+nelb+2]  % &quot;;&quot; gives error?!&lt;br&gt;
&amp;gt; end&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; size(sys.T,2)&lt;br&gt;
&amp;gt; ------&lt;br&gt;
&amp;gt; (some other stuff is before this, but this is what seems to be causing the problems.)&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; If the operation in the for-loop is ended with a &quot;;&quot; then&lt;br&gt;
&amp;gt; &quot;size(sys.T,2)&quot; returns a value, as if the loop has not been run at&lt;br&gt;
&amp;gt; all. If &quot;;&quot; is omitted it returns fine, but I of course have a very&lt;br&gt;
&amp;gt; cluttered command window.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; If I run the program with the &quot;;&quot; and then after the program has&lt;br&gt;
&amp;gt; finished type &quot;size(sys.T,2)&quot; in the command window, it returns the&lt;br&gt;
&amp;gt; proper result.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; What is happening and how do I fix it?&lt;br&gt;
&lt;br&gt;
Think you'll need to post a full example that demonstrates the problem &lt;br&gt;
w/o excerpting and trying to interpret the error messages.  You've &lt;br&gt;
&quot;concised&quot; it down too far...&lt;br&gt;
&lt;br&gt;
--</description>
    </item>
    <item>
      <pubDate>Tue, 27 Oct 2009 17:42:19 -0400</pubDate>
      <title>Re: Size-function and &quot;;&quot;</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/264225#690101</link>
      <author>Adam Andersen L?ss?e</author>
      <description>Okay, here is the entire code up until the problem:&lt;br&gt;
&lt;br&gt;
% DESCRIPTION ---------------------------------------------------&lt;br&gt;
% 2D heat flow applying plane triangular elements of the lpt type&lt;br&gt;
% with linear field approximation.&lt;br&gt;
&lt;br&gt;
close all, clear all&lt;br&gt;
&lt;br&gt;
% Independent parameters&lt;br&gt;
a=8e-3;&lt;br&gt;
b=12*a;&lt;br&gt;
nelb=4;&lt;br&gt;
El=b/2*nelb;&lt;br&gt;
% lx=2.0;                     % length of the domain&lt;br&gt;
% ly=1.0;                     % width of the domain&lt;br&gt;
&lt;br&gt;
% TOPOLOGY ------------------------------------------------------&lt;br&gt;
% node coord's&lt;br&gt;
&lt;br&gt;
for i=1:2*nelb+1&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;sys.X(i,:)=[(i-1)*El 0.0];&lt;br&gt;
end&lt;br&gt;
&lt;br&gt;
for i=1:2*nelb+1&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;sys.X=[sys.X ; [(i-1)*El 0.5]];&lt;br&gt;
end&lt;br&gt;
&lt;br&gt;
for i=1:2*nelb+1&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;sys.X=[sys.X ; [(i-1)*El 1]];&lt;br&gt;
end&lt;br&gt;
&lt;br&gt;
%el topo&lt;br&gt;
nno=size(sys.X,1);&lt;br&gt;
counter=0;&lt;br&gt;
for i=1:2:2*nelb&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;counter=counter+1;&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;sys.T{counter}=[i i+2 nno-2*nelb+(i-1)];      &lt;br&gt;
end&lt;br&gt;
for i=1:2:2*nelb   %This entire loop seems to be disregarded by the following size-func.&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;counter=counter+1;&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;sys.T{counter}=[i+2 nno-2*nelb+(i+1) nno-2*nelb+(i-1)]  % &quot;;&quot;-problem!&lt;br&gt;
end&lt;br&gt;
&lt;br&gt;
size(sys.T,2)&lt;br&gt;
----------------------------------------&lt;br&gt;
&lt;br&gt;
If &quot;;&quot; is omitted from 4th line from the bottom size(sys.T,2) works as expected, and returns 8.&lt;br&gt;
If &quot;;&quot; is included size(sys.T,2)  returns only 4. This corresponds to the last loop being omitted. When, however I type size(sys.T,2) in the command window after the code has been executed, it returns the proper result, 8.</description>
    </item>
    <item>
      <pubDate>Tue, 27 Oct 2009 18:12:32 -0400</pubDate>
      <title>Re: Size-function and &quot;;&quot;</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/264225#690108</link>
      <author>dpb</author>
      <description>Adam Andersen L?ss?e wrote:&lt;br&gt;
&amp;gt; Okay, here is the entire code up until the problem:&lt;br&gt;
&lt;br&gt;
...[code elided for brevity]...&lt;br&gt;
&lt;br&gt;
&amp;gt; If &quot;;&quot; is omitted from 4th line from the bottom size(sys.T,2) works&lt;br&gt;
&amp;gt; as expected, and returns 8.&lt;br&gt;
&amp;gt; If &quot;;&quot; is included size(sys.T,2)  returns only 4. This corresponds to&lt;br&gt;
&amp;gt; the last loop being omitted. When, however I type size(sys.T,2) in&lt;br&gt;
&amp;gt; the command window after the code has been executed, it returns the&lt;br&gt;
&amp;gt; proper result, 8.&lt;br&gt;
&lt;br&gt;
I pasted your code into a file tryit.m and ran it w/ and w/o the subject &quot;;&quot;&lt;br&gt;
&lt;br&gt;
&amp;nbsp;&amp;gt;&amp;gt; tryit&lt;br&gt;
sys =&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;X: [27x2 double]&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;T: {[1 3 19]  [3 5 21]  [5 7 23]  [7 9 25]  [3 21 19]}&lt;br&gt;
sys =&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;X: [27x2 double]&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;T: {[1 3 19]  [3 5 21]  [5 7 23]  [7 9 25]  [3 21 19]  [5 23 21]}&lt;br&gt;
sys =&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;X: [27x2 double]&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;T: {[1 3 19]  [3 5 21]  [5 7 23]  [7 9 25]  [3 21 19]  [5 23 21] &lt;br&gt;
[7 25 23]}&lt;br&gt;
sys =&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;X: [27x2 double]&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;T: {1x8 cell}&lt;br&gt;
ans =&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;8&lt;br&gt;
&amp;nbsp;&amp;gt;&amp;gt; tryit&lt;br&gt;
ans =&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;8&lt;br&gt;
&amp;nbsp;&amp;gt;&amp;gt; sys&lt;br&gt;
sys =&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;X: [27x2 double]&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;T: {1x8 cell}&lt;br&gt;
&amp;nbsp;&amp;gt;&amp;gt;&lt;br&gt;
&lt;br&gt;
No discernible difference here...&lt;br&gt;
&lt;br&gt;
(R12, rather old; perhaps somebody w/ newer version can check as well)&lt;br&gt;
&lt;br&gt;
--</description>
    </item>
    <item>
      <pubDate>Tue, 27 Oct 2009 19:32:03 -0400</pubDate>
      <title>Re: Size-function and &quot;;&quot;</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/264225#690119</link>
      <author>Matt Fig</author>
      <description>I can confirm this in 2007b.  &lt;br&gt;
&lt;br&gt;
If the semicolon is added, but a simple&lt;br&gt;
&lt;br&gt;
pause(.001)&lt;br&gt;
&lt;br&gt;
is placed before the call to size, the problem disappears.  When the call to pause is removed, the incorrect size is returned.  Why should this depend on a flushing of the graphic events queue?  Something has gone afoul.   Here is the code I used, compacted a little bit:&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
close all, clear all&lt;br&gt;
a=8e-3;   b=12*a;   nelb=4;   El=b/2*nelb;&lt;br&gt;
for i=1:2*nelb+1&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;sys.X(i,:)=[(i-1)*El 0.0];&lt;br&gt;
end&lt;br&gt;
for i=1:2*nelb+1&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;sys.X=[sys.X ; [(i-1)*El 0.5]];&lt;br&gt;
end&lt;br&gt;
for i=1:2*nelb+1&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;sys.X=[sys.X ; [(i-1)*El 1]];&lt;br&gt;
end&lt;br&gt;
nno=size(sys.X,1);&lt;br&gt;
counter=0;&lt;br&gt;
for i=1:2:2*nelb&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;counter=counter+1;&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;sys.T{counter}=[i i+2 nno-2*nelb+(i-1)];&lt;br&gt;
end&lt;br&gt;
for ii=1:2:2*nelb %Thiis entire loop seems to be disregarded by the following size-func.&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;counter=counter+1;&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;sys.T{counter} = [ii+2 nno-2*nelb+(ii+1) nno-2*nelb+(ii-1)]; % &quot;;&quot;-problem!&lt;br&gt;
end&lt;br&gt;
pause(.001) % comment this out to get a different value.&lt;br&gt;
TT = size(sys.T,2)&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
Also, a whos statement can be used instead of a pause, and putting the code in a function instead of a script has no effect.</description>
    </item>
    <item>
      <pubDate>Tue, 27 Oct 2009 20:55:24 -0400</pubDate>
      <title>Re: Size-function and &quot;;&quot;</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/264225#690133</link>
      <author>dpb</author>
      <description>Matt Fig wrote:&lt;br&gt;
&amp;gt; I can confirm this in 2007b.  &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; If the semicolon is added, but a simple&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; pause(.001)&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; is placed before the call to size, the problem disappears. When the&lt;br&gt;
&amp;gt; call to pause is removed, the incorrect size is returned. ...&lt;br&gt;
&lt;br&gt;
This looks like OP should submit a bug report to TMW, then...&lt;br&gt;
&lt;br&gt;
--</description>
    </item>
    <item>
      <pubDate>Tue, 27 Oct 2009 21:07:05 -0400</pubDate>
      <title>Re: Size-function and &quot;;&quot;</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/264225#690134</link>
      <author>Jan Simon</author>
      <description>Dear Adam!&lt;br&gt;
&lt;br&gt;
I confirm this for Matlab 2009a.&lt;br&gt;
Matlab R13 (6.5.1) works well.&lt;br&gt;
&lt;br&gt;
I've reduced the problem again:&lt;br&gt;
&amp;nbsp;&lt;br&gt;
&amp;nbsp;&amp;nbsp;S = [];&lt;br&gt;
&amp;nbsp;&amp;nbsp;counter = 0;&lt;br&gt;
&amp;nbsp;&amp;nbsp;for i = 1:2&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;counter      = counter + 1;&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;S.T{counter} = 1;&lt;br&gt;
&amp;nbsp;&amp;nbsp;end&lt;br&gt;
&amp;nbsp;&amp;nbsp;for i = 1:2&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;counter      = counter + 1;&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;S.T{counter} = 2;&lt;br&gt;
&amp;nbsp;&amp;nbsp;end&lt;br&gt;
&amp;nbsp;&amp;nbsp;% pause(.001) % comment this out to get a different SIZE&lt;br&gt;
&amp;nbsp;&amp;nbsp;% S.T{end} = 5;  % does not help&lt;br&gt;
&amp;nbsp;&amp;nbsp;lengthT = length(S.T);&lt;br&gt;
&amp;nbsp;&amp;nbsp;sizeT   = size(S.T); &lt;br&gt;
&amp;nbsp;&amp;nbsp;disp(sizeT);&lt;br&gt;
&amp;nbsp;&amp;nbsp;disp(lengthT);&lt;br&gt;
&amp;nbsp;&amp;nbsp;% X = S.T;  sizeX = size(X);  % correct!&lt;br&gt;
&lt;br&gt;
Reply:&lt;br&gt;
&amp;nbsp;&amp;nbsp;1 2  % This is the SIZE&lt;br&gt;
&amp;nbsp;&amp;nbsp;4  % This is the LENGTH, same for NUMEL&lt;br&gt;
&lt;br&gt;
1. To my deep surprise only the SIZE is concerned, but the LENGTH is correct. NUMEL works fine, too.&lt;br&gt;
2.  The order of the SIZE and LENGTH commands does not matter.&lt;br&gt;
3. &quot;disp(size(S.T))&quot; replies the correct size!&lt;br&gt;
4. Further loops can follow, but SIZE replies the same dimensions as after the first loop.&lt;br&gt;
5. This bug appears for structs only. If [T] is used directly, the replies of SIZE and LENGTH are correct.&lt;br&gt;
6. If [S.T] is not a cell but a vector, the problem does not appear.&lt;br&gt;
7. As you can imagine, disabling the just-in-time acceleration let vanish the problem: feature('accel', 'off').&lt;br&gt;
8. Using a different counter for the 2nd loop does not change the problem, e.g. counter2. Same for greater steps, e.g. counter = counter + 2;&lt;br&gt;
9. Expanding [S.T] in another direction in the 2nd loop does change the problem, e.g. &quot;S.T{counter, 2} = 2;&quot;&lt;br&gt;
10. &quot;disp(S.T)&quot; works well.&lt;br&gt;
11. &quot;S.T{end} = 5&quot; inserts the 5 in the correct last position, but the reply of SIZE remains invalid.&lt;br&gt;
12. A read access to [S.T] fixes the problem.&lt;br&gt;
&lt;br&gt;
Please TWM, fix this JIT bug for as many old Matlab versions as possible.&lt;br&gt;
&lt;br&gt;
Thanks Adam for finding this bug! Jan</description>
    </item>
    <item>
      <pubDate>Wed, 28 Oct 2009 09:02:03 -0400</pubDate>
      <title>Re: Size-function and &quot;;&quot;</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/264225#690232</link>
      <author>Jan Simon</author>
      <description>Dear Adam!&lt;br&gt;
&lt;br&gt;
Did you send a bug report to The MathWorks?&lt;br&gt;
&lt;br&gt;
Thanks, Jan</description>
    </item>
    <item>
      <pubDate>Wed, 28 Oct 2009 13:43:04 -0400</pubDate>
      <title>Re: Size-function and &quot;;&quot;</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/264225#690292</link>
      <author>Adam Andersen L?ss?e</author>
      <description>&quot;Jan Simon&quot; &amp;lt;matlab.THIS_YEAR@nMINUSsimon.de&amp;gt; wrote in message &amp;lt;hc91ab$a9c$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; Dear Adam!&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Did you send a bug report to The MathWorks?&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Thanks, Jan&lt;br&gt;
&lt;br&gt;
I didn't see all the replies until now. I can't seem to get the notification feature work.&lt;br&gt;
No, I haven't filed a bug report. How do I do that? Maybe you, who evidently ran some more extensive bug-analysis would find it easy?&lt;br&gt;
&lt;br&gt;
Thanks for all the quick replies!&lt;br&gt;
&lt;br&gt;
I </description>
    </item>
    <item>
      <pubDate>Wed, 28 Oct 2009 17:13:02 -0400</pubDate>
      <title>Re: Size-function and &quot;;&quot;</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/264225#690370</link>
      <author>Jan Simon</author>
      <description>Dear Adam!&lt;br&gt;
&lt;br&gt;
&amp;gt; No, I haven't filed a bug report. How do I do that? Maybe you, who evidently ran some more extensive bug-analysis would find it easy?&lt;br&gt;
&lt;br&gt;
I filled out the bug report and mentioned, that you have discovered this bug.&lt;br&gt;
&lt;br&gt;
Jan</description>
    </item>
    <item>
      <pubDate>Wed, 28 Oct 2009 18:22:03 -0400</pubDate>
      <title>Re: Size-function and &quot;;&quot;</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/264225#690394</link>
      <author>Adam Andersen L?ss?e</author>
      <description>&quot;Jan Simon&quot; &amp;lt;matlab.THIS_YEAR@nMINUSsimon.de&amp;gt; wrote in message &amp;lt;hc91ab$a9c$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; Dear Adam!&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Did you send a bug report to The MathWorks?&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Thanks, Jan&lt;br&gt;
&lt;br&gt;
I didn't see all the replies until now. I can't seem to get the notification feature work.&lt;br&gt;
No, I haven't filed a bug report. How do I do that? Maybe you, who evidently ran some more extensive bug-analysis would find it easy?&lt;br&gt;
&lt;br&gt;
Thanks for all the quick replies!&lt;br&gt;
&lt;br&gt;
I </description>
    </item>
    <item>
      <pubDate>Thu, 29 Oct 2009 11:59:02 -0400</pubDate>
      <title>Re: Size-function and &quot;;&quot;</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/264225#690605</link>
      <author>Martin Demel</author>
      <description>&quot;Jan Simon&quot; &amp;lt;matlab.THIS_YEAR@nMINUSsimon.de&amp;gt; wrote in message &amp;lt;hc9u2u$r25$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; Dear Adam!&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; No, I haven't filed a bug report. How do I do that? Maybe you, who evidently ran some more extensive bug-analysis would find it easy?&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; I filled out the bug report and mentioned, that you have discovered this bug.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Jan&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
Thanks, Jan, for reporting this bug to The Mathworks Technical Support!  It's about  the way the JIT/Accelerator treats code with structure based indices.&lt;br&gt;
I verified this behaviour in R2009a and earlier but could not reproduce this issue in R2009b. So an upgrade would help in this case here. For previous versions you have to use one of the following workarounds:&lt;br&gt;
&lt;br&gt;
To workaround this issue, use any of the following options:&lt;br&gt;
feature jit off&lt;br&gt;
feature accel off&lt;br&gt;
or, &lt;br&gt;
feature jitallow structs off&lt;br&gt;
&lt;br&gt;
Our development is aware of the indexing issue in combination with the accelerator and resolved most of related issues, but there may be still some left so please report them if you find some others. &lt;br&gt;
&lt;br&gt;
Martin&lt;br&gt;
Technical Support, The MathWorks</description>
    </item>
  </channel>
</rss>

