[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Matlab-style empty output/input arguments support
From: |
Jaroslav Hajek |
Subject: |
Re: Matlab-style empty output/input arguments support |
Date: |
Fri, 29 Jan 2010 22:13:55 +0100 |
On Fri, Jan 29, 2010 at 10:10 PM, Søren Hauberg <address@hidden> wrote:
> fre, 29 01 2010 kl. 21:56 +0100, skrev Jaroslav Hajek:
>> 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.
>
> >> [a, ~, b] = deal (1, 2, 3) % without semicolon
> ??? [a, ~, b] = deal (1, 2, 3) % without semicolon
> |
> Error: Expression or statement is incorrect--possibly unbalanced
> (, {, or [.
>
> This is with R2009a. Is that too old a version?
>
Maybe. The feature is listed as news here:
http://www.mathworks.com/products/matlab/whatsnew.html
so it may only be in 2009b.
--
RNDr. Jaroslav Hajek, PhD
computing expert & GNU Octave developer
Aeronautical Research and Test Institute (VZLU)
Prague, Czech Republic
url: www.highegg.matfyz.cz
Re: Matlab-style empty output/input arguments support, Jaroslav Hajek, 2010/01/29
Re: Matlab-style empty output/input arguments support, Michael D Godfrey, 2010/01/29
Re: Matlab-style empty output/input arguments support, Michael D Godfrey, 2010/01/29
Re: Matlab-style empty output/input arguments support, Jaroslav Hajek, 2010/01/30