[Top][All Lists]

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

Re: how to calculate mean for many files

From: Jaroslav Hajek
Subject: Re: how to calculate mean for many files
Date: Tue, 15 Dec 2009 07:30:03 +0100

On Tue, Dec 15, 2009 at 6:57 AM, febty febriani <address@hidden> wrote:
>> Based on what you think the following two lines from your code:
>> a=["filename_folder"];
>> filenames=cellstr(a);
>> will collect file names from the directory ?
> Yes, you are right. So, my result was not to be what I expected like my
> description on the previous email. Anyway, thanks very much for your
> explanation about array. It is very helpful for me to understand octave
> better.
> Until now, I can not find what command to pick up/load my files into a
> matrix. I have already searched about "load" command, but I didn't find yet.
> Finally, I used awk command to solve my problem eventhough awk is more
> time-consuming.
> Again, thanks very much..

In general, you can use "glob" and "readdir". But it's hard to advise
more when you carefully keep all the details of how your files are
named/located for yourself. Maybe it's something top secret :)

RNDr. Jaroslav Hajek
computing expert & GNU Octave developer
Aeronautical Research and Test Institute (VZLU)
Prague, Czech Republic

reply via email to

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