|
From: | Tadeus \"Eus\" Prastowo |
Subject: | Re: [arrayfun] How to use "UniformOutput" ? |
Date: | Sat, 25 Sep 2010 08:18:40 +0200 |
>I am using Octave 3.0.1 on GNU/Linux Ubuntu Jaunty 9.04.On 3.2.4, putting parenthesis around the anonymous function definition,
>
>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.
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/
[Prev in Thread] | Current Thread | [Next in Thread] |