Matlab and Arduino code for week #4