help-octave
[Top][All Lists]
Advanced

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

Re: varargout{:} = func() ?


From: forkandwait
Subject: Re: varargout{:} = func() ?
Date: Wed, 24 Feb 2010 14:59:00 +0000 (UTC)
User-agent: Loom/3.14 (http://gmane.org/)

>   v = cell (expected_outputs, 1);
>   [v{:}] = func (...);
> 
> should work in any recent version of Octave.  

It does.

>   clear v;
>   [v{:}] = func (...);

Hmm.  But they said it would on the newsgroup ;).  To be fair, they may have 
assumed that one would know pre-sizing the cell array.
 
> will not work, because Octave can't determine nargout for the function
> call.  I expect this is also true in Matlab.

I guess there is no notation in case one doesn't know the number of expected 
outputs?  I am just curious at this point.



reply via email to

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