Why do I receive errors when reading certain Excel files into MATLAB?

2 views (last 30 days)
Why do I receive errors when reading certain Excel files into MATLAB?
Using the following code with my Excel file, 'test.xls':
[a b] = xlsfinfo('test.xls')
I receive the following error:
Unreadable XLS file: Error using ==> D:\MATLAB6p1\toolbox\matlab\iofun\private\biffread
Unable to read XLS file test.xls. File is not in recognized format.
However, if I copy the contents of the file and paste it into a new file, it works.

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 27 Jun 2009
This bug has been fixed for Release 14 (R14). For previous releases, please read below for any possible workarounds:
This bug has been fixed for Release 14 SP1 (R14SP1). For previous releases, please read below for any possible workarounds:
This problem appears when an .XLS file is created with an unsupported version of Microsoft Excel for a particular version of MATLAB, such as Excel XP with MATLAB 6.1 (R12.1). Even if you save the file in different formats, such as Excel 2000 or Excel 97, the file still is not recognized. This may be due to different header information in files created with different versions of Excel.
The only workaround is to copy the contents of the file and paste it into a Excel sheet created using a supported Excel version and save that file.

More Answers (0)

Categories

Find more on Data Import from MATLAB in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!