MathGroup Archive 1994

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

Search the Archive

Re: same options for 30 functions?

  • To: mathgroup at
  • Subject: Re: same options for 30 functions?
  • From: Mark E. Kotanchek <mek at>
  • Date: Fri, 25 Mar 94 10:44:45 -0500

IF I understand the question, I have run up against a similar problem. I'm looking  
at array signal processing problems and, of course, all of the applications need to  
know the array configuration. Thus, I defined a symbol, "ArrayConfiguration" which  
only has options: ArrayElements ->120, TimeBandwidthProduct->20000,  
ElementSpacing->0.5, etc. Inside each of my actual functions, I then do...

   myFunction[a_,b_,opts___] := Module[
   	 K = ArrayElements /. {opts}, /. Options[ArrayConfiguration];

so if need be I can override the values and, otherwise, parameters set during my  
initial configuration hold.

I would thing a similar approach would hold for your problem. If you need to change  
the default on the fly, it should be easy with a SetOptions[].

Mark Kotanchek
Signal Processing Dept - 363 ASB
Applied Research Lab/Penn State
P.O. Box 30
State College, PA 16804

e-mail:	mek at (NeXTmail)
TEL:	(814)863-0682
FAX:	(814)863-0753

  • Prev by Date: Declare (comment), operators (Q)
  • Next by Date: (1) ContourPlot (absolute maximum) and (2) BarChart3D
  • Previous by thread: Re: same options for 30 functions?
  • Next by thread: Mathematica World - Education Today