Moving data to matfiles