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