Importing data from an Excel file with multiple tabs
Show older comments
I have an Excel file that I would like to pull data from, except it has multiple tabs and I have to use the command 'readtabe' to import the data because it is a mixture of different variable types. How can I specify which tab to pull data from?
Accepted Answer
More Answers (1)
Walter Roberson
on 14 Apr 2023
filename = 'AsAppropriate.xlsx';
T1 = readtable(filename, 'Sheet', 3); %can give sheet index
T2 = readtable(filename, 'Sheet', 'partslist'); %can give sheet name
Categories
Find more on Spreadsheets in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!