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: [mg52644] Re: [mg52618] Table Iterators
  • From: DrBob <drbob at bigfoot.com>
  • Date: Sun, 5 Dec 2004 02:08:47 -0500 (EST)
  • References: <200412040907.EAA13441@smc.vnet.net>
  • Reply-to: drbob at bigfoot.com
  • Sender: owner-wri-mathgroup at wolfram.com

rowDim := {i, 2, 7, 1/2}
colDim := {j, 3, 4, 1/3}
Table[stuff, rowDim // Evaluate, colDim // Evaluate]

{{stuff, stuff, stuff, stuff}, {stuff, stuff, stuff, stuff}, {
   stuff, stuff, stuff, stuff}, {stuff, stuff, stuff, stuff}, {
   stuff, stuff, stuff, stuff}, {stuff, stuff, stuff, stuff}, {
   stuff, stuff, stuff, stuff}, {stuff, stuff, stuff, stuff}, {
   stuff, stuff, stuff, stuff}, {stuff, stuff, stuff, stuff}, {
   stuff, stuff, stuff, stuff}}

Bobby

On Sat, 4 Dec 2004 04:07:57 -0500 (EST), Gregory Lypny <gregory.lypny at videotron.ca> wrote:

> 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
>
>
>
>



-- 
DrBob at bigfoot.com
www.eclecticdreams.net


  • References:
  • Prev by Date: Maximizing a function that depends on a list of length M grows as 3^M
  • Next by Date: Re: .WAV file headers
  • Previous by thread: Table Iterators
  • Next by thread: Re: Table Iterators