I have a matrix which is a 2d array read from a text file. Each row of text file has 3 entries. The 3rd column has values ranging from 1 to 4. And I want to separate the rows based on this value and put them into different matrix. Could you please suggest a way to do it?
Share
For an Matrix
M, as you describeTo see why this works, look at the results from the following portions of: