I have a 4 column array and in one column and they are made up of about 6 or 7 different repeating value. What i wish to do is create a set of smaller arrays by removing one type of number and the associated row for each value.
For example:
1 2 3 4
3 6 5 4
3 2 9 8
5 3 0 8
4 6 9 5
7 3 4 7
In the second column, 2, 3 and 6 are repeated, how would I got about extracting all the rows which have 3 in the second column and then placing this result into a new array?
EDIT: I forgot to mention the data is located in a .dat file as a 2D array