I am working with data that is in a 152867×2 matrix. The first column contains one of three values ranging from 1-3. The second column, however, has a unique value for each row (see example data below). I would like to know how I can write a program that can extract 3 matrices according to the value of the first column (see example output). I'm new to MATLAB, so explicit instructions would be fantastic. Thanks.
Example Data
3, 0.1234
1, 0.1345
1, 0.1456
2, 0.1567
1, 0.1678
1, 0.1789
Desired Output – Three Matrices
1) 3, 0.1234
2) 2, 0.1567
3) 1, 0.1345
1, 0.1456 1, 0.1678 1, 0.1789
Best Answer