m=: i. 8 4

   1 0 2 |: _2]\ m
 0  1  2  3
 8  9 10 11
16 17 18 19
24 25 26 27

 4  5  6  7
12 13 14 15
20 21 22 23
28 29 30 31



On Tue, Nov 20, 2012 at 8: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.
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
>
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to