| Author |
Comment/Response |
howie
|
09/17/10 11:12pm
Hi,
I am writing a program to save data sets in the form of a .txt file. as shown below
Initial:
Export["pixel_3.txt",ReplacePart[Table[0,{20}],3->44]]
I tried writing a loop to automate saving the .txt in the process but i cant get the program to execute? My trouble is getting the "filename" to vary with the Do loop? my code is written below.
Final:
Do[Export["pixel_"n".txt",ReplacePart[Table[0,{20}],n->44]],{n,20}]
where n is variable.
Any help would be great
Thanks
howie
URL: , |
|