MathGroup Archive 2002

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

Search the Archive

Re: Variable number of parameters

  • To: mathgroup at
  • Subject: [mg33312] Re: [mg33300] Variable number of parameters
  • From: BobHanlon at
  • Date: Thu, 14 Mar 2002 19:51:12 -0500 (EST)
  • Sender: owner-wri-mathgroup at

In a message dated 3/14/02 3:10:46 AM, 
Sven.Richter at writes:

>I'd like to have a table with a variable number of parameters, like:
>Table[{m[1], m[2],..., m[n]}, {m[1], minVal, maxVal, step}, {m[2], minVal,
>maxVal, step}, ...,
>{m[n], minVal,  maxVal, step}]


var = Table[ToExpression[
        "m"<>ToString[k]], {k,n}];

minVal = 2; maxVal = 6; step = 2;

Table[var, Evaluate[Sequence @@
      ({#, minVal, maxVal, step}& /@ var)]]

Bob Hanlon
Chantilly, VA  USA

  • Prev by Date: Shadow a part of plot without affecting frame ticks.
  • Next by Date: Problem with Plot output
  • Previous by thread: Variable number of parameters
  • Next by thread: Re: Variable number of parameters