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