MATLAB: Delete specific rows in table

table

I want a table that has all values that their cell_type is 4 and get rid of those row that their cell_type is not 4.
Any suggestion?Capture.JPG

Best Answer

T(T.cell_type~=4,:) = [];
% where T is the name of your table