_2({.\,:{:\)i.6 3
0 1 2
6 7 8
12 13 14
3 4 5
9 10 11
15 16 17
R.E. Boss
> -----Oorspronkelijk bericht-----
> Van: [email protected]
> [mailto:[email protected]] Namens Aai
> Verzonden: dinsdag 20 november 2012 18:30
> Aan: [email protected]
> Onderwerp: Re: [Jprogramming] Splitting (re-arranging) a matrix
>
> key again
>
> (]/.~0 1$~#) i. 6 3
> 0 1 2
> 6 7 8
> 12 13 14
>
> 3 4 5
> 9 10 11
> 15 16 17
>
>
>
> On 20-11-12 17:51, Alex Giannakopoulos 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
>
> --
> Met vriendelijke groet,
> @@i = Arie Groeneveld
>
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm