Constracting two matrices with odd and even rows
Posted: Wed Oct 23, 2013 7:37 am
I have a matrix with 100 rows and 100 column: M(100,100).
I need to construct two matrices one with the odd rows and with the even rows: M_odd(50,50 and M_even(50,50)
I have extracted the raws using the following loop
for !i =1 to 100
rowvector r!i = @rowextract(M,!i)
next
How can I construct the two matrices with a loop in order to avoid to following manual approach?
EVEN rows
rowplace(M_even,r1,1)
rowplace(M_even,r3,2)
etc...
ODD rows
rowplace(M_odd,r2,1)
rowplace(M_odd,r4,2)
etc...
I need to construct two matrices one with the odd rows and with the even rows: M_odd(50,50 and M_even(50,50)
I have extracted the raws using the following loop
for !i =1 to 100
rowvector r!i = @rowextract(M,!i)
next
How can I construct the two matrices with a loop in order to avoid to following manual approach?
EVEN rows
rowplace(M_even,r1,1)
rowplace(M_even,r3,2)
etc...
ODD rows
rowplace(M_odd,r2,1)
rowplace(M_odd,r4,2)
etc...