MathGroup Archive 2002

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

Search the Archive

Re: Plot problem


Hello Frank,
The solution is using Evaluate.

In[1]:=
FuncList = {Exp[x], Sin[y], z^3};

In[2]:=
VarList = {x, y, z};

In[3]:=
Do[Plot[Evaluate[FuncList[[i]], {VarList[[i]], -5, 5}]], {i, 1,
Length[VarList]}]

Greetings,

Germán Buitrago A.


----- Original Message -----
From: "Frank Brand" <frank.brand at t-online.de>
To: mathgroup at smc.vnet.net
Subject: [mg37194] [mg37179] Plot problem


> Dear colleagues,
>
> how can I solve the following problem: The task is to successively plot
> the functions given in FuncList with the accociated variable
>
>
> FuncList = {Exp[x], Sin[y], z^3};
>
> VarList = {x, y, z};
>
> Do[Plot[FuncList\[LeftDoubleBracket]
>        i\[RightDoubleBracket], {VarList\[LeftDoubleBracket]
>          i\[RightDoubleBracket], -5, 5}], {i, 1, Length[VarList]}]]
>
> Thanks in advance
> Frank Brand
>
>
>



  • Prev by Date: Re: Plot problem
  • Next by Date: grouping and averaging {x,y} pairs of data
  • Previous by thread: Plot problem
  • Next by thread: Re: Plot problem