I have a .mat file that I opened it in python. It's a (66365) matrix. I want to write this to a Excel file. How can I di it? I open it by following code:
import scipy.io mat= scipy.io.loadmat('2003.mat')
You can either use the builtin csv library: https://docs.python.org/3.4/library/csv.html
or use NumPy instead using this method: Dump a NumPy array into a csv file
I generally recommend NumPy, but I don't think there is a significant difference here.