[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [arrayfun] How to use "UniformOutput" ?
From: |
Francesco Potortì |
Subject: |
Re: [arrayfun] How to use "UniformOutput" ? |
Date: |
Sat, 25 Sep 2010 02:38:39 +0200 |
>I am using Octave 3.0.1 on GNU/Linux Ubuntu Jaunty 9.04.
>
>Following the example on
>http://www.gnu.org/software/octave/doc/interpreter/Applying-a-Function-to-an-Array.html#Applying-a-Function-to-an-Array
>,
>
>arrayfun (@(x,y) x:y, "abc", "def", "UniformOutput", false) should work.
On 3.2.4, putting parenthesis around the anonymous function definition,
I get this:
octave> arrayfun ((@(x,y) x:y), "abc", "def", "UniformOutput", false)
ans =
{
[1,1] = abcd
[1,2] = bcde
[1,3] = cdef
}
--
Francesco Potortì (ricercatore) Voice: +39 050 315 3058 (op.2111)
ISTI - Area della ricerca CNR Fax: +39 050 315 2040
via G. Moruzzi 1, I-56124 Pisa Email: address@hidden
(entrance 20, 1st floor, room C71) Web: http://fly.isti.cnr.it/