Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'automatic variables' topicStudent Support Forum > General > "automatic variables"

Next Comment >Help | Reply To Topic
Author Comment/Response
ike
03/31/11 11:10am

hey everybody,

i am having a small problem and hope that you can help me...

I am trying to generate variable automatically in a for-loop.
I try to gain sth. like: sumA, sumB, sumC, sumD...

->well I can put those variables together by "sum"<>"A"; "sum"<>"B",...
and i can do so within a loop by using "sum"<>FromCharacterCode[{i}] instead of A,B,C...

but how can i use that string as a variable?

I am aiming to generate the variables within a for-loop and set a value for each one at the same time...

is there anybody with a good idea???

THANKS A LOT


URL: ,

Subject (listing for 'automatic variables')
Author Date Posted
automatic variables ike 03/31/11 11:10am
Re: automatic variables Patrick 03/31/11 2:19pm
Next Comment >Help | Reply To Topic