python file type .mat code example Example: python open mat file import scipy.io mat = scipy.io.loadmat('file.mat')