Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2004
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2004

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Table Iterators

  • To: mathgroup at smc.vnet.net
  • Subject: [mg52627] Re: [mg52618] Table Iterators
  • From: "Caffa Vittorio Dr." <Caffa at iabg.de>
  • Date: Sun, 5 Dec 2004 02:08:03 -0500 (EST)
  • Sender: owner-wri-mathgroup at wolfram.com

Try this:

In[1]:= rowDim = {i, 2, 3, 1};

In[2]:= colDim = {j, 3, 7, 1};

In[3]:= Table[100i + j, rowDim // Evaluate, colDim // Evaluate]

Out[3]= {{203, 204, 205, 206, 207}, {303, 304, 305, 306, 307}, 
         {403, 404, 405, 406, 407}}

Cheers, Vittorio



-----Ursprüngliche Nachricht-----
Von: Gregory Lypny [mailto:gregory.lypny at videotron.ca] 
Gesendet: Samstag, 4. Dezember 2004 10:08
An: mathgroup at smc.vnet.net
Betreff: [mg52618] Table Iterators

Hello Everyone,

I need to create many tables, all with the same iterators {i, iMin, 
iMax, di}, {j, jMin, jMax, dj}.  I'd like to be able to set the 
iterators outside of the Table function so that I can change them and 
have all of the tables change accordingly.

I've tried

rowDim:= {i, iMin, iMax, di} and colDim:={j, jMin, jMax, dj} inside of 
Table[stuff,rowDim,colDim]

but this generates an iterator error.

Any suggestions would be most appreciated.

	Greg


  • Prev by Date: Re: Table Iterators
  • Next by Date: Re: Table Iterators
  • Previous by thread: Re: Table Iterators
  • Next by thread: Re: Table Iterators