How can I import spreadsheets from OpenOffice Calc?

조회 수: 1 (최근 30일)
Bernd Ruck
Bernd Ruck 2014년 4월 28일
댓글: dpb 2014년 4월 28일
Is there a way to import spreadsheets from OpenOffice Calc Version 4.0.1 into Matlab Version R2013b. I´ve saved my file als Excel xls and tried xlsread in basic-mode, but an Error occured:
Error using xlsread (line 248)
XLSREAD unable to read sheet 'Spreadsheet2'.
File does not contain recognized Excel data. Try saving as Excel 98.
Actually the command xlsfinfo says it is an Excel-file. If I use a spreadsheet made with Excel and change it with OpenOffice, it depends on the numbers of spreadsheets in the file how many rows I can import. I don´t use any Toolboxes.

답변 (1개)

dpb
dpb 2014년 4월 28일
I've not used O-O enough to know what it does about compatibility of files but clearly as far as the Matlab implementation of xlsread with your version it isn't being recognized as being readable in whatever level of Excel compatibility you saved it as. Did you try the suggested workaroud?
If that fails or O-O support doesn't have any compatibility suggestions, it would seem your choices would be to investigate whether a later release of Matlab might have more capability or the generic solution would be to save as a csv file and read it instead.
  댓글 수: 2
Bernd Ruck
Bernd Ruck 2014년 4월 28일
What workaround did you mean?
dpb
dpb 2014년 4월 28일
File does not contain recognized Excel data. Try saving as Excel 98.

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

카테고리

Help CenterFile Exchange에서 Spreadsheets에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by