I have matrix A
A = [1 55 14 1 1 12 55 14 1 1 13 55 14 1 1 14 35 14 1 1 15 35 13 1 1 26 35 12 1 1 27 35 11 2 2 38 35 11 2 2 39 35 9 2 2 310 35 8 2 2 311 35 8 3 3 412 35 8 3 3 413 35 8 4 1 514 35 9 4 1 515 33 8 5 4 416 32 8 5 4 417 31 8 5 4 418 30 8 5 3 4];
I want to split A into B and C using column 2. If column 2 is >= 47, rows moves into matrix B while if column 2 is <47, moves into matrix C
B = [1 55 14 1 1 12 55 14 1 1 13 55 14 1 1 1];C = [4 35 14 1 1 15 35 13 1 1 26 35 12 1 1 27 35 11 2 2 38 35 11 2 2 39 35 9 2 2 310 35 8 2 2 311 35 8 3 3 412 35 8 3 3 413 35 8 4 1 514 35 9 4 1 515 33 8 5 4 416 32 8 5 4 417 31 8 5 4 418 30 8 5 3 4];
Best Answer