E5 Shield Code (MATLAB)