datadings.tools.matlab module

datadings.tools.matlab.iter_fields(arr, ignore=())[source]

Iterate over the fields of a structured numpy array (i.e., an array with a complex data type). Each iteration yields (fieldname, value).

Parameters:
  • arr – A structured array.

  • ignore – Fields to ignore.

Returns:

Yields individual fields from the array.

datadings.tools.matlab.loadmat(mat)[source]

Load a Matlab “mat” file.

Parameters:

mat – Path, file-like object, or data.

Returns:

Contents of the Matlab file.