Skip to main content

mat73_decode

Function mat73_decode 

Source
pub fn mat73_decode(bytes: &[u8]) -> Result<Vec<(String, MatValue)>, ErrorsJSL>
Expand description

Reads a MATLAB v7.3 MAT-file (an HDF5 file with a 512-byte user block): the variables in the order the file lists them (alphabetical), as the values crate::mat_decode gives for level 5. Numeric, logical and character arrays (empty ones too), complex arrays, sparse matrices, cell arrays and structures (scalar and arrays) are read; function handles, objects and tables are reported as errors. The order of a structure’s fields is MATLAB’s (the attribute MATLAB_fields) when the file has it, and the file’s (alphabetical) otherwise.