Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'How to assign values to variables automatically' topicStudent Support Forum > General > Archives > "How to assign values to variables automatically"

Next Comment >Help | Reply To Topic
Author Comment/Response
Miguel
07/23/10 06:27am

Hello.

I'm working with an expression that is dependent of several ordered parameters co1,co1,...,con.
I would like to know how can I assign values for them inside a loop. I tried this:

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

but for each symbol it says that it is protected.

Thank you

URL: ,

Subject (listing for 'How to assign values to variables automatically')
Author Date Posted
How to assign values to variables automatically Miguel 07/23/10 06:27am
Re: How to assign values to variables automatic... yehuda ben-s... 07/25/10 3:21pm
Re: How to assign values to variables automatic... Peter Pein 08/01/10 05:15am
Next Comment >Help | Reply To Topic