help-octave
[Top][All Lists]
Advanced

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

Re: how to calculate mean for many files


From: febty febriani
Subject: Re: how to calculate mean for many files
Date: Tue, 15 Dec 2009 15:46:00 +0900

Sorry, I ignored your previous question. Really, my file name and where it is located are not the top secret :)

I located my file in the folder name like : dir=/home/febty/Documents/data_PLRatu/2009/data-1day-1Hz/FFT, because the input file is the FFT result.

my file name example is "freqspec-20090902Bx.dat. All files vary on the years, months and days, so I used bash command to make easy it.

I read about glob, but I think it is not the built-in function.

Lastly, I used Octave 3.0.3. I didn't upgrade it to newer one because I am doing my work in the fedora-operating-system-computer lab. I am not familiar with fedora. I usually use Ubuntu.

Ok, that's all information :)
Thanks very much for your kind response.


Regards,
febty

2009/12/15 Jaroslav Hajek <address@hidden>
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
url: www.highegg.matfyz.cz



--

******
febty febriani
Indonesian Institute of Sciences
Research Center for Physics
Kompleks PUSPIPTEK
Serpong, Indonesia, 15314

reply via email to

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