* odd and even rows in a matrix
a=linspace(1,20,20)
a=a'
a_even = a(2:2:end,:)
a_odd=a(1:2:end,:)