MATLAB Code for GPS science fair