I'm very new to scilab syntax and can't seem to find a way to extract the even and odd elements of a matrix into two separate matrix, suppose there's a matrix a
:
a=[1,2,3,4,5,6,7,8,9]
How do I make two other matrix b
and c
which will be like
b=[2 4 6 8]
and c=[1 3 5 7 9]