Skip to content
Prev 970 / 7420 Next

a question for save CSV files in the 'for loop' codes

The problem is you're using the same filename for each call to write.
The for loop is unaware of the i in "F:/pixel_no[i].csv" as it is
hidden by the quote marks. You need to use the paste function to
create a new file name for each iteration.

Will Morris
Masters of Philosophy candidate
Vesk Plant Ecology Lab
The School of Botany
The University of Melbourne
Australia
Phone: +61 3 8344 0120
http://www.botany.unimelb.edu.au/vesk/
On 25/12/2009, at 19:38, Zongshan Li <zongshan_li at yahoo.com> wrote: