When load matrices from mat file in python using scipy.io, it makes dictionary where key is name of matrix,and value is 2D array of that matrix.
How can i access elements in this array?
Suppose you have
mat = sio.loadmat('a.mat')
Then you can see which matrices were loaded by
print mat
For each key key in the dictionary, you can retrieve the corresponding matrix by
my_matrix = mat[key]
my_matrix is a 2d array representing the matrix. So to get row 0 of the matrix, you would use my_matrix[0], and to get element(0,0) of the matrix, you would use my_matrix[0][0].
Here's a nice tutorial you can use for other basic functionality.