d2r.m~
来自「信号与信息处理-matlab信号处理工具箱源程序集合」· M~ 代码 · 共 43 行
M~
43 行
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 + =
减小字号Ctrl + -
显示快捷键?