Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'Names for general variables' topicStudent Support Forum > General > Archives > "Names for general variables"

Next Comment >Help | Reply To Topic
Author Comment/Response
Nicolette Caister
09/15/08 06:45am

Hi

I have a piece of code that imports data files. Each file is associated with an iteration and hence called S0.dat; S1.dat etc. I have 60 of these and thus use a For loop to import them. I want to save these "tables" as S0, S1 etc, but how do I write that? In my for loop I have an 'i' but MM won't allow simply Si = Import[...]. Do I use a hash or something to let MM know that each variable must have the number associated with i appended to the name?

Thanks!

URL: ,

Subject (listing for 'Names for general variables')
Author Date Posted
Names for general variables Nicolette Ca... 09/15/08 06:45am
Re: Names for general variables Forum Modera... 09/20/08 9:28pm
Re: Re: Names for general variables Nicolette Ca... 10/07/08 09:40am
Next Comment >Help | Reply To Topic