4.71429

4.7 | 7 ratings Rate this file 63 Downloads (last 30 days) File Size: 202.72 KB File ID: #10759

JMatIO - Matlab's MAT-file I/O in JAVA

by Wojciech Gradkowski

 

15 Apr 2006 (Updated 05 Oct 2007)

Package contains Matlab's MAT-file I/O API in JAVA. Supports Matlab 5 MAT-flie format reading and wr

| Watch this File

File Information
Description

JMatIO is a JAVA library to read/write/manipulate with Matlab's binary MAT-files.

Currently supported data types are:
+ Double array
+ UInt8, Int8 array
+ UInt64, Int64 array
+ Char array
+ Structure
+ Cell array
+ Sparase array

this project is also available at http://sf.net/projects/jmatio

Acknowledgements
This submission has inspired the following:
CSMatIO: MAT-file I/O API for .NET 2.0
MATLAB release MATLAB 7.0.4 (R14SP2)
Other requirements Java SDK 1.5.0
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (8)
12 Jan 2007 Leon Lee

Very useful!

11 Apr 2007 Olav -

Very useful library

08 Aug 2007 iskandar mamaik  
06 Oct 2010 Lei

Execellent. But problem with large mat files. I have these error messages when reading a large mat file ( > 40 M):
Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
at java.util.Arrays.copyOf(Unknown Source)
at java.io.ByteArrayOutputStream.write(Unknown Source)
at com.jmatio.io.MatFileReader.inflate(Unknown Source)
at com.jmatio.io.MatFileReader.readData(Unknown Source)
at com.jmatio.io.MatFileReader.read(Unknown Source)
at com.jmatio.io.MatFileReader.<init>(Unknown Source)
at com.jmatio.io.MatFileReader.<init>(Unknown Source)
at com.Tester.common.Tester.main(Tester.java:41)

Is there a fix?

18 Feb 2011 Bryant Mairs

Would be useful to support the single data type. Odd omission from this library.

20 Feb 2011 rohit

very useful

22 Aug 2011 Stuart Bowman

Thank you! This is a big help in the world of java apps that produce data that engineers need to analyze. Great API.

29 Aug 2011 Essam Soliman

how to use this library?

Please login to add a comment or rating.
Updates
24 Apr 2006

Following users' suggestions (thank you Imran) some code parts were modified:
+MLDouble array supports Jama style constructors, and JAVA types
+MLChar String exports
+MatFileReader maps content by name
+JUnit tests added
+JavaDoc added

26 Apr 2006

+ bug fix: reading unsigned values
+ new constructor in MLDouble supporting double[][]
+ filtered reading of MAT-file
+ JUnit test updated

26 Apr 2006

+bug fix: poor performance with big arrays
+documentation updated
+jmatio.jar added

24 May 2006

+improved performance of MatFileReader (~100% faster now)
+JUnit tests added to test and show usage of Cells and Strucutures

22 Feb 2007

+ Added support:UInt8 array
+ MAJOR reading performance enhancement - reading is as fast as in Matlab now
+ Removed Log4j references

02 Mar 2007

+ REGRESSION BUG: double arrays created natively in Matlab are not read correctly (reversed byte ordering)

26 Mar 2007

+ bugfix: struct/cell reading fails when containing empty arrays
+ added: int64 and uint64 support

05 Oct 2007

+ Sparse matrix bugfixes
+ MatFileReader performance enhancements
+ new MatFileReader methods added

Tag Activity for this File
Tag Applied By Date/Time
external interface Wojciech Gradkowski 22 Oct 2008 08:22:24
mat file Wojciech Gradkowski 22 Oct 2008 08:22:24
java Wojciech Gradkowski 22 Oct 2008 08:22:24
save Wojciech Gradkowski 22 Oct 2008 08:22:24
load Wojciech Gradkowski 22 Oct 2008 08:22:24
io Wojciech Gradkowski 22 Oct 2008 08:22:24
java Kevin ortega 01 Oct 2010 10:15:37

Contact us at files@mathworks.com