Importing data from excel
조회 수: 5 (최근 30일)
이전 댓글 표시
Greetings,
I have been following instructions while trying to import text data in the form of hex values into matlab. I have one column of data 192 rows deep and I have been using
alpha12_data = importdata('alpha12_data.xlsx')
alpha12_data =
'PK'
alpha12_data = xlsread('alpha12_data.xlsx', 'A1:A192')
alpha12_data =
[]
neither of these two commands work. Can anyone help me by explaining why? The file alpha12_data is in current directory
Thanks
댓글 수: 0
채택된 답변
Oleg Komarov
2012년 8월 10일
편집: Oleg Komarov
2012년 8월 10일
It seems that R2007b wasn't still able to import .xlsx files.
I found the first reference to this type only from R2009a!
The workaround
Save it as .xls with excel.
댓글 수: 0
추가 답변 (1개)
Walter Roberson
2012년 8월 10일
편집: Walter Roberson
2012년 8월 10일
.xslx files were not supported on non-Windows systems (or Windows systems that did not have Excel installed) until R2011b or so. I do not recall at the moment when support for .xlsx files was first introduced -- it is going to depend in part on your Excel version.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Spreadsheets에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!