I'm pretty new to Matlab and although I could probably just do this iteratively I'm wondering what is the cleanest way using possibly built-in Matlab functionality.
I have a .mat file that contains a feature matrix X that is of size 150x4 and a class label vector Y that is of size 150x1. What is the idiomatic way in Matlab to read in and divide the matrix X into separate matrices for each class group?