help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: batch processing


From: Ben Abbott
Subject: Re: batch processing
Date: Fri, 23 Dec 2011 19:05:44 -0500

On Dec 22, 2011, at 3:26 PM, Jerome Sylvestre wrote:

> Hi,
> 
> I have a batch of .csv files in a folder. 
> How can I program to get my script process every .csv on after the other?
> 
> Thank you,
> 
> Jerome

You can obtain the names of the files by ....

        files = {dir("*.csv").name};

... and then you can use a for-loop to process them.

        for n = 1:numel(files)
                csvfile = files{n};
                .
                .
                .
        endfor

Please follow up with more questions if needed.

Ben


reply via email to

[Prev in Thread] Current Thread [Next in Thread]