On Tue, Nov 20, 2012 at 11:51 AM, Alex Giannakopoulos <[email protected]> wrote: > OK, here is a simplified example of what I'm trying to do: > I want to split a matrix into two, so that the result is composed of the > odd rows and even rows of the matrix respectively > > e.g. > > oddevenrows i. 6 > 0 1 2 > 6 7 8 > 12 13 14 > > 3 4 5 > 9 10 11 > 15 16 17 > > I'm thinking, should I use select or cut or something else. Long day.
I do not see what i.6 has to do with this. Here's an expression that builds the array you specified: 0 2 |: i. 3 2 3 0 1 2 6 7 8 12 13 14 3 4 5 9 10 11 15 16 17 Hypothetically speaking, these are indices, but they are indices into a list with 18 elements, and i.6 does not have that many. So I am confused... -- Raul ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
