MATLAB: Importing different sheets of an Excel Data

importing excel data

Hello. I am trying to import different sheets of an Excel file in my MATLAB code. I need for example use sheet 1, do some calculation, do same calculation on sheet 2 and so on. Then, get an average from my calculations on sheet1 ,2… Also, Should I know how many sheets do I have? I am asking because I need to generalize it. Thanks

Best Answer

You can retrieve the name of the sheets in an excel file with xlsfinfo