Let's make a sample table.
rng default
listOfTypes = ["apple"; "banana"; "cherry"];
T = listOfTypes(randi(numel(listOfTypes), 5, 1));
x = randi(10, 5, 1);
tt = table(T, x)
theCherries = tt(tt.T == "cherry", :)
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!