[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: changes in cellfun
From: |
Søren Hauberg |
Subject: |
Re: changes in cellfun |
Date: |
Tue, 15 Dec 2009 21:53:22 +0100 |
Hi
tir, 15 12 2009 kl. 21:45 +0100, skrev Jaroslav Hajek:
> octave:1> cellfun (@isscalar, {1, 2, 3})
> ans =
>
> 1 1 1
[snip]
> octave:2> cellfun (@(x) x + i*nargout, {1, 2, 3})
> ans =
>
> 1 2 3
[snip]
> octave:3> a = cellfun (@(x) x + i*nargout, {1, 2, 3})
> a =
>
> 1 + 1i 2 + 1i 3 + 1i
>
> I checked with Matlab 2007 and it does the same. I would be glad if
> someone could check a more recent version.
These examples behave the same way in Matlab 7.8.0.347 (R2009a).
Soren