Learning and testing MATLAB scripts