<rss xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" version="2.0">
  <channel>
    <title>MaplePrimes - answers and comments on Question, Multiple files</title>
    <link>http://www.mapleprimes.com/questions/37237-Multiple-Files</link>
    <language>en-us</language>
    <copyright>2026 Maplesoft, A Division of Waterloo Maple Inc.</copyright>
    <generator>Maplesoft Document System</generator>
    <lastBuildDate>Fri, 12 Jun 2026 13:31:51 GMT</lastBuildDate>
    <pubDate>Fri, 12 Jun 2026 13:31:51 GMT</pubDate>
    <itunes:subtitle />
    <itunes:summary />
    <description>The latest answers and comments added to the Question, Multiple files</description>
    <image>
      <url>http://www.mapleprimes.com/images/mapleprimeswhite.jpg</url>
      <title>MaplePrimes - answers and comments on Question, Multiple files</title>
      <link>http://www.mapleprimes.com/questions/37237-Multiple-Files</link>
    </image>
    <item>
      <title>Multiple files</title>
      <link>http://www.mapleprimes.com/questions/37237-Multiple-Files?ref=Feed:MaplePrimes:Multiple files:Comments#answer65585</link>
      <itunes:summary>&lt;p&gt;I think you want something like this:&lt;/p&gt;
&lt;pre&gt;
&amp;gt; for i from 1740 to 1770 do
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Y[i]:= readdata(cat(&amp;quot;/Users/humadih/test/&amp;quot;,i,&amp;quot;.tmp&amp;quot;), 1)
&amp;nbsp;&amp;nbsp; end do;
&lt;/pre&gt;
&lt;p&gt;This should produce separate lists Y[1740] to Y[1770].&lt;/p&gt;
&lt;p&gt;If you want a Matrix with these as rows, you can then do &lt;/p&gt;
&lt;pre&gt;
&amp;gt; Matrix([seq(Y[i],i=1740..1770)]);
&lt;/pre&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</itunes:summary>
      <description>&lt;p&gt;I think you want something like this:&lt;/p&gt;
&lt;pre&gt;
&amp;gt; for i from 1740 to 1770 do
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Y[i]:= readdata(cat(&amp;quot;/Users/humadih/test/&amp;quot;,i,&amp;quot;.tmp&amp;quot;), 1)
&amp;nbsp;&amp;nbsp; end do;
&lt;/pre&gt;
&lt;p&gt;This should produce separate lists Y[1740] to Y[1770].&lt;/p&gt;
&lt;p&gt;If you want a Matrix with these as rows, you can then do &lt;/p&gt;
&lt;pre&gt;
&amp;gt; Matrix([seq(Y[i],i=1740..1770)]);
&lt;/pre&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description>
      <guid>65585</guid>
      <pubDate>Sat, 06 Jun 2009 02:03:49 Z</pubDate>
      <itunes:author>Robert Israel</itunes:author>
      <author>Robert Israel</author>
    </item>
    <item>
      <title>Thanks Robert, it</title>
      <link>http://www.mapleprimes.com/questions/37237-Multiple-Files?ref=Feed:MaplePrimes:Multiple files:Comments#answer65586</link>
      <itunes:summary>Thanks Robert, it worked!

why do you have to use for - do loop instead the seq command? is it possible to do it that way?

I'm just curious 

thanks again </itunes:summary>
      <description>Thanks Robert, it worked!

why do you have to use for - do loop instead the seq command? is it possible to do it that way?

I'm just curious 

thanks again </description>
      <guid>65586</guid>
      <pubDate>Sat, 06 Jun 2009 02:20:09 Z</pubDate>
      <itunes:author>mathgeek</itunes:author>
      <author>mathgeek</author>
    </item>
    <item>
      <title>for - do vs seq</title>
      <link>http://www.mapleprimes.com/questions/37237-Multiple-Files?ref=Feed:MaplePrimes:Multiple files:Comments#answer65588</link>
      <itunes:summary>Jakubi,

thanks for the comment, I understand the fundamental difference between the two. I was wondering if I can do what Robert did with the seq command. I figured it out!

what's cf ?


thanks</itunes:summary>
      <description>Jakubi,

thanks for the comment, I understand the fundamental difference between the two. I was wondering if I can do what Robert did with the seq command. I figured it out!

what's cf ?


thanks</description>
      <guid>65588</guid>
      <pubDate>Sat, 06 Jun 2009 08:41:58 Z</pubDate>
      <itunes:author>mathgeek</itunes:author>
      <author>mathgeek</author>
    </item>
    <item>
      <title>for - do vs seq</title>
      <link>http://www.mapleprimes.com/questions/37237-Multiple-Files?ref=Feed:MaplePrimes:Multiple files:Comments#comment65587</link>
      <itunes:summary>&lt;p&gt;The 'seq' command creates a sequence of expressions, while the 'for' - 'do' loop creates a repetition of statements, like the assignment statement here (cf ?assignment).&lt;/p&gt;</itunes:summary>
      <description>&lt;p&gt;The 'seq' command creates a sequence of expressions, while the 'for' - 'do' loop creates a repetition of statements, like the assignment statement here (cf ?assignment).&lt;/p&gt;</description>
      <guid>65587</guid>
      <pubDate>Sat, 06 Jun 2009 04:49:10 Z</pubDate>
      <itunes:author>jakubi</itunes:author>
      <author>jakubi</author>
    </item>
    <item>
      <title>Using seq</title>
      <link>http://www.mapleprimes.com/questions/37237-Multiple-Files?ref=Feed:MaplePrimes:Multiple files:Comments#comment65590</link>
      <itunes:summary>&lt;p&gt;Do you mean like this?&lt;/p&gt;
&lt;pre&gt;
&amp;gt; Matrix([seq(readdata(cat(&amp;quot;/Users/humadih/test/&amp;quot;,i,&amp;quot;.tmp&amp;quot;), 1), i = 1740 .. 1770)]);&lt;/pre&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</itunes:summary>
      <description>&lt;p&gt;Do you mean like this?&lt;/p&gt;
&lt;pre&gt;
&amp;gt; Matrix([seq(readdata(cat(&amp;quot;/Users/humadih/test/&amp;quot;,i,&amp;quot;.tmp&amp;quot;), 1), i = 1740 .. 1770)]);&lt;/pre&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description>
      <guid>65590</guid>
      <pubDate>Sun, 07 Jun 2009 11:55:14 Z</pubDate>
      <itunes:author>Robert Israel</itunes:author>
      <author>Robert Israel</author>
    </item>
    <item>
      <title>cf</title>
      <link>http://www.mapleprimes.com/questions/37237-Multiple-Files?ref=Feed:MaplePrimes:Multiple files:Comments#comment65589</link>
      <itunes:summary>&lt;p&gt;&lt;a href="http://en.wikipedia.org/wiki/Cf."&gt;cf.&lt;/a&gt; is an abbreviation for the Latin word confer, meaning compare.&lt;/p&gt;
&lt;p&gt;You may already have figured out that you can accomplish the assignments using &lt;b&gt;seq&lt;/b&gt; and &lt;b&gt;assign&lt;/b&gt;. The result (NULL) gets ignored, as the assignments get done as side-effects. It's slick, but not especially good.&lt;/p&gt;
&lt;pre&gt;
&amp;gt; x[1], x[2], x[3] := 1, 2, 3:

&amp;gt; seq( assign(a[i],x[i]), i=1..3 );

&amp;gt; a[1], a[2], a[3];
                                    1, 2, 3
&lt;/pre&gt;
&lt;p&gt;acer&lt;/p&gt;</itunes:summary>
      <description>&lt;p&gt;&lt;a href="http://en.wikipedia.org/wiki/Cf."&gt;cf.&lt;/a&gt; is an abbreviation for the Latin word confer, meaning compare.&lt;/p&gt;
&lt;p&gt;You may already have figured out that you can accomplish the assignments using &lt;b&gt;seq&lt;/b&gt; and &lt;b&gt;assign&lt;/b&gt;. The result (NULL) gets ignored, as the assignments get done as side-effects. It's slick, but not especially good.&lt;/p&gt;
&lt;pre&gt;
&amp;gt; x[1], x[2], x[3] := 1, 2, 3:

&amp;gt; seq( assign(a[i],x[i]), i=1..3 );

&amp;gt; a[1], a[2], a[3];
                                    1, 2, 3
&lt;/pre&gt;
&lt;p&gt;acer&lt;/p&gt;</description>
      <guid>65589</guid>
      <pubDate>Sat, 06 Jun 2009 09:21:24 Z</pubDate>
      <itunes:author>acer</itunes:author>
      <author>acer</author>
    </item>
  </channel>
</rss>