Calculation of the total internal angle of the triangle in Matllab