MathGroup Archive 2008

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

Search the Archive

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.


  • Prev by Date: Re: ShowLegend font size
  • Next by Date: Re: Block diagonal matrices
  • Previous by thread: Set::setps problems
  • Next by thread: Re: Set::setps problems