MATLAB: How to create a table from a bigger table based on category

catergoriesdatasetStatistics and Machine Learning ToolboxSystem Identification Toolboxtable

I am working on a data set which I imported to a table from a csv file. The table contains 8 columns. The data type of the columns is as follows : one column is categorical while the other columns are number (double). I would like to create sub tables, each one corresponds to a category. Anyone to help do that. Thanks in advance>

Best Answer

You probably do not want to do that, but there's not enough information to go on.
In any case
T2 = T(T.C == 'somevalue',:)
does what you are asking. But you probably do not need to do that. You will end up with a bunch of separate tables. You are likely better off having one table, and doing grouped calculations with things like varfun or splitapply.