<rss xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" version="2.0">
  <channel>
    <title>MaplePrimes - answers and comments on Question, error: adding new index to table is overwriting a different index</title>
    <link>http://www.mapleprimes.com/questions/42723-Error-Adding-New-Index-To-Table-Is</link>
    <language>en-us</language>
    <copyright>2026 Maplesoft, A Division of Waterloo Maple Inc.</copyright>
    <generator>Maplesoft Document System</generator>
    <lastBuildDate>Thu, 11 Jun 2026 07:32:32 GMT</lastBuildDate>
    <pubDate>Thu, 11 Jun 2026 07:32:32 GMT</pubDate>
    <itunes:subtitle />
    <itunes:summary />
    <description>The latest answers and comments added to the Question, error: adding new index to table is overwriting a different index</description>
    <image>
      <url>http://www.mapleprimes.com/images/mapleprimeswhite.jpg</url>
      <title>MaplePrimes - answers and comments on Question, error: adding new index to table is overwriting a different index</title>
      <link>http://www.mapleprimes.com/questions/42723-Error-Adding-New-Index-To-Table-Is</link>
    </image>
    <item>
      <title>The same table</title>
      <link>http://www.mapleprimes.com/questions/42723-Error-Adding-New-Index-To-Table-Is?ref=Feed:MaplePrimes:error: adding new index to table is overwriting a different index:Comments#answer79722</link>
      <itunes:summary>The problem here is that you are only using one table.  The second time through the loop you change the same table that was used the first time through the loop.  You need to create a new table each time through the loop.

The assignment

PlotTable[thicknesstable[k]] := eval(MMatrixListReal); 

Does not make a copy of the table MMatrixListReal, it creates a reference to the table.

Add

MMatrixListReal := table();

at the top of the main loop.  This will create a new table for each iteration of the loop.

Darin

--
Kernel Developer
Maplesoft</itunes:summary>
      <description>The problem here is that you are only using one table.  The second time through the loop you change the same table that was used the first time through the loop.  You need to create a new table each time through the loop.

The assignment

PlotTable[thicknesstable[k]] := eval(MMatrixListReal); 

Does not make a copy of the table MMatrixListReal, it creates a reference to the table.

Add

MMatrixListReal := table();

at the top of the main loop.  This will create a new table for each iteration of the loop.

Darin

--
Kernel Developer
Maplesoft</description>
      <guid>79722</guid>
      <pubDate>Tue, 25 Jul 2006 17:36:11 Z</pubDate>
      <itunes:author>dohashi</itunes:author>
      <author>dohashi</author>
    </item>
    <item>
      <title>Er.. DOH!</title>
      <link>http://www.mapleprimes.com/questions/42723-Error-Adding-New-Index-To-Table-Is?ref=Feed:MaplePrimes:error: adding new index to table is overwriting a different index:Comments#comment86441</link>
      <itunes:summary>I see.  Thanks :&gt;)</itunes:summary>
      <description>I see.  Thanks :&gt;)</description>
      <guid>86441</guid>
      <pubDate>Wed, 26 Jul 2006 03:53:42 Z</pubDate>
      <itunes:author>jccorreu</itunes:author>
      <author>jccorreu</author>
    </item>
  </channel>
</rss>