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

< Previous Comment | Next Comment >Help | Reply To Comment | Reply To Topic
Author Comment/Response
Bill Simpson
12/16/12 11:07pm

In[1]:= value=12;
For[h=1,h<10,h++,ToExpression[StringJoin["M",
ToString[h],"=",ToString[value+h]]]];
{M1,M4,M7}

Out[3]= {13,16,19}

URL: ,

Subject (listing for 'generate new variables')
Author Date Posted
generate new variables PhysicsGuy 12/15/12 8:18pm
Re: generate new variables Bill Simpson 12/16/12 11:07pm
Re: generate new variables PhysicsGuy 12/17/12 00:34am
< Previous Comment | Next Comment >Help | Reply To Comment | Reply To Topic