当前位置:网站首页>Use of deg2rad and rad2deg functions in MATLAB
Use of deg2rad and rad2deg functions in MATLAB
2022-07-06 19:13:00 【jk_ one hundred and one】
Catalog
deg2rad The function converts angles from degrees to radians .
rad2deg The function converts the units of angles from radians to degrees .
grammar
R = deg2rad(D)
D = rad2deg(R)
explain
about D Each element of ,R = deg2rad(D) Convert the units of angles from degrees to radians .
D = rad2deg(R) take R The angular unit of each element in is converted from radians to degrees .
Example
A right angle in radians
take 90 Degrees are converted to radians .
R = deg2rad(90)
R = 1.5708
Surface distance
Specify the spherical distance between Munich and Bangalore and the average radius of the earth in degrees ( In kilometers ). Calculate the distance between Munich and Bangalore ( Measure along the surface of the earth , In kilometers ).
D = 64.7;
radEarth = 6371;
R = deg2rad(D);
dist = radEarth*R
dist = 7.1943e+03
pi In degrees
take pi Convert to degrees .
D = rad2deg(pi)
D = 180
Spherical distance
Specify the average radius of the earth and the distance from Munich to Bangalore measured along the earth's surface ( In kilometers ). Calculate the spherical distance between Munich and Bangalore in degrees .
dist = 7194;
radEarth = 6371;
R = dist/radEarth;
D = rad2deg(R)
D = 64.6972
Input parameter description
D - Angle in degrees
Angle in degrees , Specify as scalar 、 vector 、 Matrix or multidimensional array . If D Contains plural elements , be deg2rad The real part and the imaginary part will be converted respectively .
data type : single | double
Plural support : yes
R - Angle in radians
Angle in radians , Specify as scalar 、 vector 、 Matrix or multidimensional array . If R Contains plural elements , be rad2deg The real part and the imaginary part will be converted respectively .
data type : single | double
Plural support : yes
Output parameter description
R - Angle in radians
Angle in radians , In scalar 、 vector 、 Returns... As a matrix or multidimensional array .R The size and D identical .
D - Angle in degrees
Angle in degrees , In scalar 、 vector 、 Returns... As a matrix or multidimensional array .D The size and R Same size for .
边栏推荐
- QLabel 跑马灯文字显示
- R language ggplot2 visualization: use the ggdotplot function of ggpubr package to visualize dot plot, set the palette parameter, and set the colors of data points and box graphs of dot plots at differ
- LeetCode-1279. 红绿灯路口
- Take a look at how cabloyjs workflow engine implements activiti boundary events
- 包装行业商业供应链管理平台解决方案:布局智慧供应体系,数字化整合包装行业供应链
- 黑马--Redis篇
- Help improve the professional quality of safety talents | the first stage of personal ability certification and assessment has been successfully completed!
- A full set of teaching materials, real questions of Android interview of 7 major manufacturers including Alibaba Kwai pinduoduo
- Openmv4 learning notes 1 --- one click download, background knowledge of image processing, lab brightness contrast
- AcWing 3537.树查找 完全二叉树
猜你喜欢
MRO工业品企业采购系统:如何精细化采购协同管理?想要升级的工业品企业必看!
LeetCode-1279. 红绿灯路口
When visual studio code starts, it prompts "the code installation seems to be corrupt. Please reinstall." Solution to displaying "unsupported" information in the title bar
A method of removing text blur based on pixel repair
Php+redis realizes the function of canceling orders over time
C#/VB. Net to add text / image watermarks to PDF documents
抽象类与抽象方法
Graffiti intelligence is listed on the dual main board in Hong Kong: market value of 11.2 billion Hong Kong, with an annual revenue of 300 million US dollars
倒计时2天|腾讯云消息队列数据接入平台(Data Import Platform)直播预告
How to improve website weight
随机推荐
Synchronous development of business and application: strategic suggestions for application modernization
Interview assault 63: how to remove duplication in MySQL?
AUTOCAD——中心线绘制、CAD默认线宽是多少?可以修改吗?
Mathematical knowledge -- code implementation of Gaussian elimination (elementary line transformation to solve equations)
五金机电行业供应商智慧管理平台解决方案:优化供应链管理,带动企业业绩增长
Solve DoS attack production cases
根据PPG估算血压利用频谱谱-时间深度神经网络【翻】
Describe the process of key exchange
数学知识——高斯消元(初等行变换解方程组)代码实现
Method of accessing mobile phone storage location permission under non root condition
手写一个的在线聊天系统(原理篇1)
应用使用Druid连接池经常性断链问题分析
ModuleNotFoundError: No module named ‘PIL‘解决方法
渲大师携手向日葵,远控赋能云渲染及GPU算力服务
史上超级详细,想找工作的你还不看这份资料就晚了
tensorflow和torch代码验证cuda是否安装成功
A method of removing text blur based on pixel repair
[translation] a GPU approach to particle physics
QPushButton绑定快捷键的注意事项
驼峰式与下划线命名规则(Camel case With hungarian notation)