I have a matrix:
I would like to split this into two new matrices which are dependent on whether the values in column C are greater than 7 or less than 7.
I have tried a loop:
for i=1:12 if matrix(i,3)>7 A=(matrix(i,:)) elseif matrix(i,3)<7 B=(matrix(i,:)) endend
this did not give me two matrices.
Can anyone help? Many thanks
Best Answer