| 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: , |
|