adjusting example script to export .mat file