Assignment 1.2 NXT Matlab