function d = r2d(r)
%r2d version 0.1.0
%a simple convertion function
%radians to degrees
%syntax: {angle in degrees}=r2d({angle in radians})
%Author: Nathan Dumont, October 2005

d=r/pi*180;