MAT File Export and Fixed Memory Leak