how to save structured numpy array as mat file in python code example Example: save np array as mat file scipy.io.savemat('test.mat', {'mydata': mydata})