MATLAB: How to find table column number by column name

big datadatadata analyticsMATLABtable

I have a Table in MATLAB, suppose the table is A of dimensions 21392×1970. There are 1970 columns in table A, as evident. There is a column named "Temperature" and I would like to find out the column number of that column eg. between 1-1970 which value in my table. How can I find the column number of a MATLAB table column by specifying the name of the column? Any help in this regard would be highly appreciated. Cheers and Thanks!

Best Answer

tidx = find(string(T.Properties.VariableNames) == "Temperature")