load M file, calculate only necessary points