matlab work for COSC303 - Numerical Analysis