updated lab 4 MATLAB files