Problem with importing data from excel file on Mac
조회 수: 5 (최근 30일)
이전 댓글 표시
I want to import data from an excel file to Matlab, but my attempts have failed so far. I am a Mac user.
댓글 수: 0
채택된 답변
Walter Roberson
2011년 4월 18일
If you are using anything other than a Windows system with Excel installed, then xlsread() can only handle "Basic" files.
'basic' Flag to request reading in basic mode, which is the default for systems without Excel for Windows. In basic mode, the xlsread function:
Only reads XLS files.
Imports the entire active range of the worksheet.
Requires a string to specify the sheet, and the sheet name is case sensitive.
Does not support function handle inputs.
댓글 수: 0
추가 답변 (1개)
D
2011년 4월 18일
csvread might work in this case, if you're working from one worksheet, but only want a specific range of the data.
You'd have to convert your data, but I think it works for Mac as well.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Data Import from MATLAB에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!