I have a structure S
that I have stored in a .mat file I built with MATLAB -v7.3 (because the struct was too large, >2GB requires -v7.3). Unfortunately, now I cannot open my files with spio.loadmat('myfile.mat')
so I am opening it with h5py
:
f = h5py.File('myfile.mat')
My struct, S
, has 3 fields and a size of 700.
Ex.
S(1).field1 = some array
S(1).field2 = some array
S(1).field3 = some array
....
S(700).field1 = some array
S(700).field2 = some array
S(700).field3 = some array
My question is, how do I access these fields and some array values in the h5py format? Using f
?