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: Mon, 14 Dec 2009 20:32:49 +0900

sorry for my post.
I searched and found the problem. I used like below :

a=["filename_folder"];
filenames=cellstr(a);
matrices=cellfun(@load, filenames, "UniformOutput", false);
means=plus(matrices{:})/numel(matrices);

I just found one error : Invalid call to plus.

I've already searched but didn't find solution yet.
If I find it, I will post on this forum. But, if anyone want to give me some advices, I will be grateful very much.

Regards,
febty




2009/12/14 Jaroslav Hajek <address@hidden>
On Mon, Dec 14, 2009 at 10:05 AM, febty febriani <address@hidden> wrote:
> thank you for your quick response.
> I tried to do what your advice is. I replaced this: "filenames = # cell
> array of strings" with the folder name where I put data. But, I met error :
> parse error: syntax error.
> Are there still problems?
>

By that line I meant that you first need to assemble a cell array of
strings containing the filenames of your data files. If they all are
in the same directory having similar names, you can probably use glob
or something similar to get these.
Sorry, I am just a mathematician, not a magician, so I cannot
telephatically discover what the layout of your data is.


--
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]