Input data ready for matlab.