E5 done but verify matlab code