MathGroup Archive 2006

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

Search the Archive

Re: Question on using Table in module

  • To: mathgroup at smc.vnet.net
  • Subject: [mg67919] Re: Question on using Table in module
  • From: dh <dh at metrohm.ch>
  • Date: Fri, 14 Jul 2006 02:11:12 -0400 (EDT)
  • References: <e92e9m$lqi$1@smc.vnet.net><e92g18$mcu$1@smc.vnet.net> <e958mp$b52$1@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

Hi Nag,
simply use attribute HoldAll.
Daniel

Nag wrote:
> Thanks Daniel. That works.
> 
> Problem is the array is not the first argument in the actual function
> and there seems to be no way to specify an arbitrary argument. Too
> messy to change the position of the argument now.
> 
> Searched some more and thought of using Hold as below. But not sure
> when and how to use ReleaseHold? Can you help?
> 
> Best
> Nag
> 
> a = {1, 0}
> 
> b[Hold[x_],n_,d_]:=Module[{i}, x[[n]] = d ];
> 
> b[a,2,40]
> 
> ?a
> 


  • Prev by Date: RE: log scaling axes
  • Next by Date: Re: Use color with ListPlot?
  • Previous by thread: Re: Question on using Table in module
  • Next by thread: Re: 3D plot of globe (map of world)?