Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2001
*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 2001

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

Search the Archive

Re: Functions with Options

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

Hi!

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