MATLAB: Basic Question: How to index into table by a text column

extract data from tables

Hello, new to Matlab. I have a table imported into Matlab. How to I extract all data in all columns from that table in only the rows labelled "hardness"? I do know that I can't extract from a table (at least I think I can't). I was able to convert the table to a cell array but I am still unable to figure out how to get just the rows with the text label "hardness" out of this table.

Best Answer

Presuming you used the names when creating the table, index by the desired name values--