📄 d2r.m~
字号:
function radians=d2r(degrees)% D2R Converts degrees to radians% % radians=d2r(degrees)% % INPUT% Angle [degrees]% % OUTPUT% Angle [radians]% % AIM:% To convert an angle from degrees to radians.% % 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 radian = 180/pi% and% x radians = x degrees/(180/pi)% = x degrees/180*pi% % 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: June 2008% % See also R2D% Copyright 2008 by Jason Moyleradians = degrees*pi/180; % Angle in radians
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -