Re: Set::setps problems
- To: mathgroup at smc.vnet.net
- Subject: [mg90273] Re: Set::setps problems
- From: Szabolcs HorvÃt <szhorvat at gmail.com>
- Date: Fri, 4 Jul 2008 03:57:16 -0400 (EDT)
- References: <g4i94f$3d2$1@smc.vnet.net>
Kazimierz =C5=81akomy 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. Use UU[[i,2]] instead.