[Top][All Lists]

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

Re: Function in a Loop output problem

From: Jaroslav Hajek
Subject: Re: Function in a Loop output problem
Date: Thu, 9 Sep 2010 20:49:19 +0200

On Thu, Sep 9, 2010 at 11:34 AM, dirac <address@hidden> wrote:
> This looks interesting Jaroslav,
> Given that the function returns the vectors a and b, would I not need to
> have the output of the cellfun a cell also? Can this even be done?

Oh yes, I overlooked that. To get a cell output, you need to do:

[a, b] = cellfun (@myfunc, var1, var2, ..., "uniformoutput", false);

where var1, var2 .. are cell arrays. a, b will the be cell arrays of vectors.
RNDr. Jaroslav Hajek, PhD
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]