[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: request test in Matlab, cellfun and anonymous functions with > 1 out
From: |
Julien Bect |
Subject: |
Re: request test in Matlab, cellfun and anonymous functions with > 1 outputs |
Date: |
Wed, 23 Jul 2014 10:58:18 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux i686; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 |
Le 23/07/2014 10:36, Olaf Till a écrit :
Could someone test these lines in Matlab?
octave:1> [a, b] = cellfun (@ (x) {x, x}{:}, {1})
error: cellfun: function returned fewer than nargout values
and
octave:1> a = @ (x) {x, x}{:}
a =
@(x) {x, x} {:}
>> [a, b] = cellfun (@ (x) {x, x}{:}, {1})
[a, b] = cellfun (@ (x) {x, x}{:}, {1})
|
Error: Unbalanced or unexpected parenthesis or bracket.
>> a = @ (x) {x, x}{:}
a = @ (x) {x, x}{:}
|
Error: Unbalanced or unexpected parenthesis or bracket.
(in Matlab R2012a)