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 2001

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

Search the Archive

Re: Functions with Options

  • To: mathgroup at
  • Subject: [mg31992] Re: Functions with Options
  • From: "Mikael Persson" <lillpele79 at>
  • Date: Sun, 16 Dec 2001 03:44:27 -0500 (EST)
  • References: <9vdtc6$55k$>
  • Sender: owner-wri-mathgroup at


Add an extra _. That is

newPlot[f_, {x_, min_, max_}, opts___] := Plot[f, {x, min, max}, opts]

Three _'s means that it also allow no options.

Goodluck / Micke P

  • Prev by Date: Eigenvalue Problem
  • Next by Date: Re: Can I clear all vaiables ?
  • Previous by thread: RE: Functions with Options
  • Next by thread: ShowProgress in NonlinearFit