MATLAB: How to select automaticaly a header of excel sheet and read the header row with xlread

xlsread

hello,
i have an excel sheet with sensor measurment data . I use xlsread to read the data my question is how can i select the header name of the row and read the data. the header name is always the same but the coulmn number is different therefore i want to give the header name and the program should select the data and plot the result. Do you have idea? thanks in advance.

Best Answer

We would suggest using readtable(), after which you can access the columns by name.