Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'Problems making and saving lists' topicStudent Support Forum > General > "Problems making and saving lists"

< Previous Comment | Next Comment >Help | Reply To Comment | Reply To Topic
Author Comment/Response
Bill Simpson
10/22/12 2:03pm

Is this what you are looking for?

In[1]:= test[x_, y_] := x + y;
For[x = 1, x < 9, x++,
Put[Table[test[x/10, y], {y, 0, 3}], "TESTT" <> ToString[x] <> ".dat"]
]

And in a moment I find files TESTT1.dat, TESTT2.dat,...TESTT8.dat in my Mathematica folder.

TESTT1.dat contains

{1/10, 11/10, 21/10, 31/10}

Similarly for TESTT2.dat...

Mathematica reserves the _ character for a special purpose and using those in variable names will cause you no end of problems.

URL: ,

Subject (listing for 'Problems making and saving lists')
Author Date Posted
Problems making and saving lists Javier 10/22/12 12:35pm
Re: Problems making and saving lists Bill Simpson 10/22/12 2:03pm
Re: Re: Problems making and saving lists Javier 10/23/12 1:45pm
Re: Re: Re: Problems making and saving lists Bill Simpson 10/23/12 7:46pm
Re: Re: Re: Re: Problems making and saving lists Javier 10/24/12 2:35pm
< Previous Comment | Next Comment >Help | Reply To Comment | Reply To Topic