<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel>
    <title>'Subscripted assignment dimension mismatch' Thread RSS Feed</title>
    <link>http://www.programmersheaven.com/</link>
    <description>Contains the latest posts from the thread 'Subscripted assignment dimension mismatch' posted on the 'Matlab' forum at Programmer's Heaven.</description>
    <language>en</language>
    <copyright>Copyright 2010 Programmers Heaven</copyright>
    <pubDate>Mon, 15 Mar 2010 20:36:15 -0700</pubDate>
    <lastBuildDate>Mon, 15 Mar 2010 20:36:15 -0700</lastBuildDate>
    <generator>Argotic Syndication Framework 2007.3.0.1, http://www.codeplex.com/Argotic</generator>
    <docs>http://www.rssboard.org/rss-specification</docs>
    <ttl>360</ttl>
    <image>
      <url>http://www.programmersheaven.com/images/ph.gif</url>
      <title>Programmers Heaven</title>
      <link>http://www.programmersheaven.com/</link>
      <width>88</width>
      <height>31</height>
    </image>
    <item>
      <title>Subscripted assignment dimension mismatch</title>
      <link>http://www.programmersheaven.com/mb/ctocplusplustomatlab/409522/409522/subscripted-assignment-dimension-mismatch/</link>
      <description>Hi Everyone &lt;br /&gt;
&lt;br /&gt;
I have stored a few values in a structure. I am using the getfield() &lt;br /&gt;
function and after getting value of a single element which satisfies a &lt;br /&gt;
condition storing it in a variable varx &lt;br /&gt;
&lt;br /&gt;
The situation is like this: &lt;br /&gt;
for i=1:4 &lt;br /&gt;
for n=1:4 &lt;br /&gt;
varx(i,:) = getfield(J,{n,1}, 'val') &lt;br /&gt;
end &lt;br /&gt;
end &lt;br /&gt;
&lt;br /&gt;
The 'val' field of the structure has values in the form &lt;br /&gt;
j1,j2,......j15. J is the name of the structure. &lt;br /&gt;
I have no problem if the 'val' field has values upto 'j9'. &lt;br /&gt;
But when the selected value is in the range j10,.....j15 &lt;br /&gt;
i get the following error: &lt;br /&gt;
??? Subscripted assignment dimension mismatch. &lt;br /&gt;
&lt;br /&gt;
Any help in this regard is highly appreciated. &lt;br /&gt;
Regards &lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/ctocplusplustomatlab/409522/409522/subscripted-assignment-dimension-mismatch/</guid>
      <pubDate>Wed, 18 Nov 2009 06:45:50 -0700</pubDate>
      <category>Matlab</category>
    </item>
  </channel>
</rss>