Script for .mat optimum to .csv