Make text file for matlab visualizer