[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: varargout{:} = func() ?
From: |
Jaroslav Hajek |
Subject: |
Re: varargout{:} = func() ? |
Date: |
Wed, 24 Feb 2010 05:56:48 +0100 |
On Wed, Feb 24, 2010 at 1:59 AM, Ben Abbott <address@hidden> wrote:
> On Feb 23, 2010, at 7:43 PM, WS wrote:
>
>> Has this notation been implemented in octave yet?
>>
>> Tx
>
> hmmm ... if you mean something like what is below, then yes.
>
> function varargout = foobar ( )
> for n = 1:numel(nargout)
> varargout{n} = n;
> end
> end
>
> In this instance "varargout" has a special meaning.
>
> If you mean, something like what is below, then that doesn't work with 3.2.x,
> but does with Matlab.
>
> v{:} = {rand(1,2), rand(1,3)}
> error: invalid dimension inquiry of a non-existent value
>
> or
>
> v{:} = rand(1,2)
> error: invalid dimension inquiry of a non-existent value
>
> Jarsolav, is this something that should be added to Octave?
>
> Ben
>
I don't have Matlab to try at hand. What do you think these should do?
--
RNDr. Jaroslav Hajek, PhD
computing expert & GNU Octave developer
Aeronautical Research and Test Institute (VZLU)
Prague, Czech Republic
url: www.highegg.matfyz.cz
- Re: varargout{:} = func() ?, (continued)
Re: varargout{:} = func() ?,
Jaroslav Hajek <=
- Re: varargout{:} = func() ?, forkandwait, 2010/02/24
- Re: varargout{:} = func() ?, John W. Eaton, 2010/02/24
- Re: varargout{:} = func() ?, forkandwait, 2010/02/24
- Re: varargout{:} = func() ?, John W. Eaton, 2010/02/24
- Re: varargout{:} = func() ?, forkandwait, 2010/02/24
Re: varargout{:} = func() ?, Jaroslav Hajek, 2010/02/24
Re: varargout{:} = func() ?, Ben Abbott, 2010/02/24
Re: varargout{:} = func() ?, Ben Abbott, 2010/02/24