I have a mat file which contains 2 different cells containing matrices of different size. I need to convert that data into a numpy array using h5py for an experiment (I'm new in h5py. I thought it was as easy as it is explained here
Reading the file works well, putting the data in the numpy array also works well, but I need the value representation of each position inside each matrix inside each cell, taking into account that when I print for example np.array(x[0][1])
, I receive just the reference to the array(< HDF5 object reference>, dtype=object)
and I need the values inside it...
It looks very tempting to convert the cell into a 3d matrix in matlab, however I don't count with root permissions to do anything in Matlab other than reading data and doing calculations (no saving anything).
If someone has already worked on this, or someone has any idea about how to get this data, I'm ready to listen to your advices.