MathGroup Archive 2010

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

Search the Archive

Assign value to variable

  • To: mathgroup at smc.vnet.net
  • Subject: [mg111229] Assign value to variable
  • From: miguelwon <miguelwon at gmail.com>
  • Date: Sat, 24 Jul 2010 05:07:37 -0400 (EDT)

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