Section: Mathematical Functions
y = rad2deg(x)
Note that the output type will be the same as the input type, and that
complex arguments are allowed. The output is not wrapped to [0,360)
.
--> rad2deg(1) % one radian is about 57 degrees ans = <double> - size: [1 1] 57.29577951308232 --> rad2deg(pi/4) % should be 45 degrees ans = <double> - size: [1 1] 45 --> rad2deg(2*pi) % Note that this is 360 not 0 degrees ans = <double> - size: [1 1] 360