Package ch.javasoft.jsmat

The jsmat package and subpackages contain classes to write MATLAB .mat files in a memory efficient manner.

See:
          Description

Interface Summary
VariableWriter A VariableWriter is created from a MatWriter to write single variables to the mat file.
 

Class Summary
MatFileHeader MAT-file header Level 5 MAT-files begin with a 128-byte header made up of a 124 byte text field and two, 16-bit flag fields
MatFileWriter The MatFileWriter writes a .mat file.
MatOutputStreamWriter The MatOutputStreamWriter writes a .mat file structure to a given OutputStream.
MatWriter<D extends DataOutput> MatWriter is an abstract superclass for different writers producing .mat formatted output.
ReservedComplexWriter Writer to write complex reserved variables such as structs.
ReservedMatrixWriter<A> Writer to write simple reserved variables (matrices).
ReservedWriter A ReservedWriter is the abstract superclass for reserved writers.
 

Package ch.javasoft.jsmat Description

The jsmat package and subpackages contain classes to write MATLAB .mat files in a memory efficient manner. Many implementations are based on the JMatIO library (see com.jmatio.* packages).

To write matlab files or output, an MatFileWriter or MatOutputStreamWriter is used. Both classes support writing MatAllocated and MatReserved variables. MatAllocated variables contain data which is already allocated in memory. It is the most convenient way to write data to the .mat file. However, for very large data structures, such as matrices with millions of rows or columns, it might be more appropriate to write the values to the file in a stream-like manner. When a reserved variable is constructed, only the size must be known. The data is then appended step by step — depending on the underlying function generating the data.

References

  1. JMatIO — Matlab's MAT-file I/O in JAVA at mathworks.com
  2. JMatIO — Matlab's MAT-file I/O in JAVA at sourceforge.net