How to import data from multiple worksheets contained in 1 workbook?
Ältere Kommentare anzeigen
Hi,
I have a workbook SelfStorageData.xls . It contains 3 worksheets . I want to import data from each of these 3 worksheets as 3 different matrices. Here is my code:
T = readtable('SelfStorageData.xls');
However, I get the following error:
Unable to open file 'SelfStorageData.xls' as a workbook. Check that the file exists, read access is available, and the file is a valid spreadsheet file.
How can this be fixed? Excel Workbook attached.
Akzeptierte Antwort
Weitere Antworten (1)
Walter Roberson
am 22 Jun. 2020
2 Stimmen
Your file is SelfStorageData.xlsx but you try to read SelfStorageData.xls without the final 'x'
2 Kommentare
Monalisa Pal
am 22 Jun. 2020
Bearbeitet: Monalisa Pal
am 22 Jun. 2020
Opps sorry, I missed the attachment. I just followed the comment. Thanks for pointing it out. I'll edit my answer.
Purnjay Peshawaria
am 22 Jun. 2020
Bearbeitet: Purnjay Peshawaria
am 22 Jun. 2020
Kategorien
Mehr zu Spreadsheets finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!