[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
request test in Matlab, cellfun and anonymous functions with > 1 outputs
From: |
Olaf Till |
Subject: |
request test in Matlab, cellfun and anonymous functions with > 1 outputs |
Date: |
Wed, 23 Jul 2014 10:36:01 +0200 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
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} {:}
octave:2> a (5)
ans = 5
ans = 5
Olaf
--
public key id EAFE0591, e.g. on x-hkp://pool.sks-keyservers.net
signature.asc
Description: Digital signature
- request test in Matlab, cellfun and anonymous functions with > 1 outputs,
Olaf Till <=