function y = deg2rad(x) % DEG2RAD converts degrees to radians % just a simple function % EGR 106 example function % see also RAD2DEG y = x * pi/180;