Changed to matlab output format