MathGroup Archive 2008

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

Search the Archive

Re: Set::setps problems

  • To: mathgroup at smc.vnet.net
  • Subject: [mg90272] Re: Set::setps problems
  • From: dh <dh at metrohm.ch>
  • Date: Fri, 4 Jul 2008 03:57:04 -0400 (EDT)
  • References: <g4i94f$3d2$1@smc.vnet.net>


Hi Kazimierz,

do not write double indices like [[i]][[j]], but like [[i,j]] and you 

will have less troubles.

Daniel



Kazimierz Å?akomy wrote:

> Hi all,

> I found troubles with such a loop:

> 

> T = Table[{s, 0}, {s, -Pi, Pi, step}];

> 

> For[i = 1, i <= Length[UU], i += 1,

>   UU[[i]][[2]] += 5];

> 

> (it's just the example of some general idea of changing values of

> table's elements inside a loop)

> 

> And Mathematica returned:

> 

> Set::setps: UU[[i]] in the part assignment is not a symbol. >>

> Set::setps: UU[[i]] in the part assignment is not a symbol. >>

> Set::setps: UU[[i]] in the part assignment is not a symbol. >>

> General::stop: Further output of Set::setps will be suppressed during \

> this calculation. >>

> 

> I would be very grateful if someone helped me with the issue.

> Thank you in advance.





-- 



Daniel Huber

Metrohm Ltd.

Oberdorfstr. 68

CH-9100 Herisau

Tel. +41 71 353 8585, Fax +41 71 353 8907

E-Mail:<mailto:dh at metrohm.com>

Internet:<http://www.metrohm.com>




  • Prev by Date: Re: Anomaly? or at least a surprise.
  • Next by Date: Re: more inset export problems
  • Previous by thread: Re: Set::setps problems
  • Next by thread: Re: Set::setps problems