MATLAB after-school experiment answer