Read and Write Open Document Format (ODF) Spreadsheet (.ods)
by Paul
07 Aug 2010
(Updated 12 Jun 2012)
Wrappers for the matlab xlsread / xlswrite commands that read ODF Spreadsheet files (.ods).
|
Watch this File
|
| File Information |
| Description |
On a pc the wrapper will simply call xlsread / xlswrite, but on a mac or unix platform will read an Open Document Format (ODF) spreadsheet, for example as saved by Open Office.
The wrapper uses java commands from the ODFDOM project which provides java libraries for reading Open Document Format files. The library is not provided here, to download see:
http://incubator.apache.org/odftoolkit/
Once the odfdom.jar file is download it must be added to the javaclasspath (see Matlab documentation on importing java libraries).
This wrapper was developed and tested only on a Mac platform (OSX 10.6.4) with Matlab 2010b using ODFDOM version 0.8.6 (only slight testing with 0.8.7), but should work on other platforms. It could be easily modified to read .ods on a pc or accept variable number of input arguments as xlsread does (currently all xlsread inputs must be specified).
|
| Required Products |
MATLAB
|
| MATLAB release |
MATLAB 7.11 (R2010b)
|
|
Tags for This File
|
| Everyone's Tags |
|
| Tags I've Applied |
|
| Add New Tags |
Please login to tag files.
|
| Updates |
| 15 May 2012 |
The package has finally been updated with myxlswrite for writing .ods files. Also myxlsread now defaults to the same behavior as xlsread which ignores column and row headers in the numeric output (bug pointed out by Alex in comments, thanks). |
| 15 May 2012 |
Fixed a bug introduced to xlsread with header option, added document close calls to end of xlsread and xlswrite, this most likely was the source of a "memory leak" problem for read. |
| 12 Jun 2012 |
Fixed bugs in myxlswrite with row_col_to_cellID and cellID_to_row_col internal functions that map integer row and column numbers to spreadsheet row and column string identifiers. |
|
Contact us