Start of stats to matlab