add resultextraction.m