help-octave
[Top][All Lists]
Advanced

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

Re: processing filenames returned by glob


From: Dmitri A. Sergatskov
Subject: Re: processing filenames returned by glob
Date: Wed, 3 May 2017 12:35:49 -0500

On Wed, May 3, 2017 at 12:21 PM, Ether Jones <address@hidden> wrote:


On Wed, May 3, 2017 at 12:39 PM, Nicholas Jankowski <address@hidden> wrote:
On Wed, May 3, 2017 at 12:25 PM, Ether Jones <address@hidden> wrote:
>
> Hello.
>
> I used glob to return a cell array of filenames.
>
> Now I want Octave to load and process each of those filenames, one at a time, and generate a separate output file for each input file.
>
> Can someone please point me in the right direction?
>
> Or is there a better way to do this?
>

​Something like that:

octave:1> fl = glob("*.h")
fl =
{
  [1,1] = config.h
  [2,1] = oct-conf-post.h
  [3,1] = octave-config.h
}

octave:2> for ii=1:rows(fl) disp(fl{ii}) endfor
config.h
oct-conf-post.h
octave-config.h


​Dmitri.






reply via email to

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