Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'Export sequential file with different name in l...' topicStudent Support Forum > General > Archives > "Export sequential file with different name in l..."

Next Comment >Help | Reply To Topic
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: ,

Subject (listing for 'Export sequential file with different name in l...')
Author Date Posted
Export sequential file with different name in l... Amin 06/21/12 3:14pm
Re: Export sequential file with different name ... Bill Simpson 06/23/12 10:13pm
Next Comment >Help | Reply To Topic