Error using readtable (line 245)

조회 수: 4 (최근 30일)
Idris Phillips-Fry
Idris Phillips-Fry 2020년 12월 10일
댓글: Idris Phillips-Fry 2020년 12월 10일
following error message when importing data from libre office using following code.
T = readtable ('trial_data.xlsx' , 'range' , 'A2:B18');
Error using readtable (line 245)
Unable to open file 'C:\Users\Owner\Documents\MATLAB\trial_data.xlsx' as a workbook.
Check that the file exists, read access is available, and the file is a valid
spreadsheet file.
Error in Project_example_data_script (line 1)
T = readtable ('trial_data.xlsx' , 'range' , 'A2:B18');
NOTE: i have imported from libre office using .xlsx files successfully before with exactly this syntax and have ensured file is accessible and in correct location
  댓글 수: 3
Idris Phillips-Fry
Idris Phillips-Fry 2020년 12월 10일
This is the data i'm attempting to import
Walter Roberson
Walter Roberson 2020년 12월 10일
Darn, I forgot that I don't have Excel installed on this boot partition, and my Excel is too old to install in my new OS version.

댓글을 달려면 로그인하십시오.

채택된 답변

Jan
Jan 2020년 12월 10일
Your file is destroyed. Neither readtable, nor xlsread not Excel can open it successfully. Some of its parts are valid, as you can see by opening it in 7zip, but some important parts are missing.
You have to recreate the file.
  댓글 수: 1
Idris Phillips-Fry
Idris Phillips-Fry 2020년 12월 10일
Ok thank you, this is odd as i literally just wrote it up myself from some data i generated. I shall recreate the file.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Data Import from MATLAB에 대해 자세히 알아보기

제품


릴리스

R2020b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by