matlab code for maths course numerical methods