octave-maintainers
[Top][All Lists]
Advanced

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

Re: Matlab-style empty output/input arguments support


From: David Grundberg
Subject: Re: Matlab-style empty output/input arguments support
Date: Wed, 03 Feb 2010 11:21:14 +0100
User-agent: Thunderbird 2.0.0.23 (X11/20090812)

Jaroslav Hajek wrote:
On Fri, Jan 29, 2010 at 11:14 PM, Michael D Godfrey
<address@hidden> wrote:
On 01/29/2010 12:56 PM, Jaroslav Hajek wrote:

Incidentally, is anyone able to check a recent Matlab to find out what
is displayed by the command
[a, ~, b] = deal (1, 2, 3) % without semicolon
?
Is the middle value displayed? If not, then I suppose we really should
simply omit the swallowed variables from the result. That's going to
be easy to implement as well.


matlab 2009R says:

[a, ~, b] = deal (1, 2, 3)
a =

     1


b =

     3


Thanks, I think this settles it. The ignored values will be omitted
from the return list.



Tried this today, and it is really sweet. Thanks Jaroslav!

David


reply via email to

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