| Author |
Comment/Response |
Amin
|
06/21/12 3:14pm
Hi,
I'm doing a simulation study using Mathematica 8.For this study I have to replicate calculation 100 times and I need to export results of each replication to a text file.Text files should have the same base name ending with the number of corresponding replication (e.g. u1,u2,...u100).How can I do that in a loop using Do ?
Suppose that I work with this loop:
Do[u = "my function", {i, 3}]
So I want to have results as u1.txt,u2.txt & u3.txt.I'm familiar with Export command but I don't know how to use it in the above loop for creating u1.txt,u2.txt & u3.txt files.
Thanks,
Amin.
URL: , |
|