I have a matrix called harm and I would like to create 2 vectors from that matrix, harmx and harmy. harmx would have the components i=1,3,5....39 while harmy will have i = 2,4,6...40.
I tried that, but it said that the Index exceeds the matrix dimensions
if mod(i,2) == 0
harmx = harm(i);
harmy = harm(i);
Thank you in advance!