python read mat file

import scipy.io
 data = scipy.io.loadmat( ' 1.mat ') #Assume the file name is 1.mat # The data type is dictionary print data.keys() #You can know that there is a data name in the Mat file, assuming it exists 'x', 'y' two columns of data print data[ ' x ' ] print data[ ' y '] 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325284820&siteId=291194637