MATLAB: Extract multiple submatrices from a large matrix based on specific criterion

submatrix

I have a Matrix A (162301×13 double) which first column contains 625 different ID numbers (they repeat that is why i have 162301 rows) and the other columns contain SL values for 12 different frequency values.
i need to extract submatrices from this large matrix for each unique ID value. For example (see attached), ID 23 contains 8 rows of values for the SLs columns and i want to extract this submatrix from the large matrix.
Any ideas?
Thanks

Best Answer

T=readtable('mydatfile.csv')% Note here it’s just your filename;
Wanted = T(T.id==23,:) %