help-octave
[Top][All Lists]
Advanced

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

Re:


From: Dmitri A. Sergatskov
Subject: Re:
Date: Tue, 23 Jul 2013 21:19:28 -0500

On Tue, Jul 23, 2013 at 8:59 PM, Jeff <address@hidden> wrote:

I'm running in Linux. Linux usually lets you list files and pass them into programs, or pass the output of one program into another, etc. Is there a way to do that for Octave files, too?

In other words, I want to program it so I can do something like this
ls <select-specific-files> | makeGraph.m
where makeGraph.m would then execute in Octave and process each file? Can I do that in Octave? How?



Perhaps I misunderstood what you really want, but could you just use glob()?
Like :

fl = glob("*Beta=0195*.csv");
nfiles = rows(fl);

for ii = 1:nfiles
   u1 = csvread(fl{ii});
   ...etc...
endfor

Dmitri.
--





reply via email to

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