MATLAB codes for Assignments