how to import .mat file from other directory in python code example Example: python open mat file import scipy.io mat = scipy.io.loadmat('file.mat')