I am using Python, trying to extract a matrix of distances from a .mat file. It comes in the form of a dictionary "dists" which is the following
print(dists)
I want to get the matrix as an array: I tried extracting the value (Python allows it to be converted to an array) but I can't take only the array out, since it says it is 0-dimensional.
arr = np.array(dists[0].values())
print(type(arr))
print(arr)
print(arr[0])
It looks like the array is 0-dimensional of the form ([[ ... ]]). How can I extract the 2D matrix?
I looked at this but couldn't figure out how to apply it to my problem. I tried arr[()] but it still thinks arr is a dictionary value rather than an array.

