Services & Resources / Wolfram Forums
MathGroup Archive
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2006

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

Search the Archive

Re: A simple problem

  • To: mathgroup at
  • Subject: [mg65979] Re: A simple problem
  • From: Jean-Marc Gulliet <jeanmarc.gulliet at>
  • Date: Tue, 25 Apr 2006 05:19:14 -0400 (EDT)
  • Organization: The Open University, Milton Keynes, UK
  • References: <e2i8he$96o$>
  • Sender: owner-wri-mathgroup at

Miguel wrote:
> Hi all,
> I want to define a function to plot a set of functions in different
> intervals.
> I define
> graficaF[f_,{interval_},var_]:=Plot[f,{var,First[interval],Last[interval]}].
> In[]: graficaF[x^2,{1,2,3},x]
> Out[]: graficaF[x^2,{1,2,3},x]
> Where is my error?
Hi Miguel,

graficaF[f_, interval:{_, __}, var_] :=
   Plot[f, {var, First[interval], Last[interval]}]


  • Prev by Date: Re: Width of plots
  • Next by Date: Re: how to iterate
  • Previous by thread: Re: A simple problem
  • Next by thread: Re: A simple problem