MATLAB cody solutions