Convenient reader for Matlab mat files


Keywords
Matlab, HDF5, import
License
BSD-1-Clause
Install
pip install pymatreader==0.0.30

Documentation

pymatreader

A Python module to read Matlab files. This module works with both the old (< 7.3) and the new (>= 7.3) HDF5 based format. The output should be the same for both kinds of files.

How to use

from pymatreader import read_mat

data = read_mat(filename)

data is a python dict containing all variables of the mat file.

Documentation

Documentation can be found here: http://pymatreader.readthedocs.io/en/latest/

Code

The source code can be found here: https://gitlab.com/obob/pymatreader

License

This module is developed by Dirk Gütlin & Thomas Hartmann at the Universität Salzburg. You are free to use, copy, modify, distribute it under the terms of the BSD 2 clause license.