MathGroup Archive 2010

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

Search the Archive

Assign value to variable


Hello.

I'm working with some expressions that are dependent of several
variables co1, co2, ... , con. I would like to know how can I assign
values iteratively to some of these variables. I tried:

For[i=1,i<=100,i++,
Symbol["co"<>ToString[i]]=0;
];

but it doesn't work. For each iteration it says coi is Protected.
Can someone help me?

Thanks


  • Prev by Date: Subscript in AxesLabel
  • Next by Date: Re: trading
  • Previous by thread: Re: Subscript in AxesLabel
  • Next by thread: Re: Assign value to variable