I am trying to read a HDF5-format MATLAB file in python using the h5py library. This file is called "Q_visSDF_accurate.mat" and has two keys: "filename" and "sdf". "filename" contains a cell array of strings. "sdf" is a [6001, 49380] matrix containing floats. I had no problem to extract the variable sdf using the following code:
However, I cant read the filename variable. I tried:
but the code returns:
How can I de-reference the content of the filename variable? |