How to import data from multiple worksheets contained in 1 workbook?
이전 댓글 표시
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.
채택된 답변
추가 답변 (1개)
Walter Roberson
2020년 6월 22일
2 개 추천
Your file is SelfStorageData.xlsx but you try to read SelfStorageData.xls without the final 'x'
댓글 수: 2
Monalisa Pal
2020년 6월 22일
편집: Monalisa Pal
2020년 6월 22일
Opps sorry, I missed the attachment. I just followed the comment. Thanks for pointing it out. I'll edit my answer.
Purnjay Peshawaria
2020년 6월 22일
편집: Purnjay Peshawaria
2020년 6월 22일
카테고리
도움말 센터 및 File Exchange에서 Spreadsheets에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!