saving results to mat file