📄 r2d.m~
字号:
function degrees=r2d(radians)% R2D Converts radians to degrees % % degrees=r2d(radians)% % INPUT% radians = Angle to be converted [radians]% % OUTPUT% Angle [degrees]% % AIM:% To convert an angle from to radians degrees.% % TECHNICAL BACKGROUND:% The radian is the angle subtended at the center of a circle by an arc% that is equal in length to the radius of the circle.% The degree is a measurement of plane angle representing 1/360 of a full% rotation.% There is pi radians in 180 degrees.% % EXAMPLE% pi radians = 180 degrees% therefore% 1 degree = pi/180 radians% and% x degrees = x radians/(pi/180)% = x radians/pi*180% % REFERENCE:% http://en.wikipedia.org/wiki/Radian% http://en.wikipedia.org/wiki/Degree_(angle)% % TODO: Find reference from maths book or si unit.% % Author: Jason Moyle% Date: September 2008% % See also D2R% Copyright 2008 by Jason Moyledegrees = radians/pi*180; % Angle in degrees
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -