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: Sergei Steshenko
Subject: Re: how to calculate mean for many files
Date: Mon, 14 Dec 2009 09:52:38 -0800 (PST)


--- On Mon, 12/14/09, febty febriani <address@hidden> wrote:

> From: febty febriani <address@hidden>
> Subject: Re: how to calculate mean for many files
> To: "Jaroslav Hajek" <address@hidden>
> Cc: address@hidden
> Date: Monday, December 14, 2009, 3:32 AM
> 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
> 
> 
> -----Inline Attachment Follows-----
> 
> _______________________________________________
> Help-octave mailing list
> address@hidden
> https://www-old.cae.wisc.edu/mailman/listinfo/help-octave
> 


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 ?

Regards,
  Sergei.


      


reply via email to

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