当前位置:网站首页>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 .
边栏推荐
- Help improve the professional quality of safety talents | the first stage of personal ability certification and assessment has been successfully completed!
- 【论文笔记】TransUNet: Transformers Make StrongEncoders for Medical Image Segmentation
- 裕太微冲刺科创板:拟募资13亿 华为与小米基金是股东
- 三年Android开发,2022疫情期间八家大厂的Android面试经历和真题整理
- 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
- Qlabel marquee text display
- GCC【7】- 编译检查的是函数的声明,链接检查的是函数的定义bug
- Camel case with Hungarian notation
- Visual Studio Code启动时提示“Code安装似乎损坏。请重新安装。”、标题栏显示“不受支持”信息的解决办法
- ModuleNotFoundError: No module named ‘PIL‘解决方法
猜你喜欢
Solution of commercial supply chain management platform for packaging industry: layout smart supply system and digitally integrate the supply chain of packaging industry
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
Abstract classes and abstract methods
Reptiles have a good time. Are you full? These three bottom lines must not be touched!
openmv4 学习笔记1----一键下载、图像处理背景知识、LAB亮度-对比度
JDBC详解
LeetCode-1279. Traffic light intersection
Digital "new" operation and maintenance of energy industry
Detailed idea and code implementation of infix expression to suffix expression
CCNP Part 11 BGP (III) (essence)
随机推荐
Interface test tool - postman
Solve DoS attack production cases
Php+redis realizes the function of canceling orders over time
QLabel 跑马灯文字显示
包装行业商业供应链管理平台解决方案:布局智慧供应体系,数字化整合包装行业供应链
The nearest library of Qinglong panel
Intelligent supply chain management system solution for hardware and electromechanical industry: digital intelligent supply chain "creates new blood" for traditional industries
LeetCode-1279. 红绿灯路口
Certains marchés de l'emploi de Shanghai refusent d'embaucher des personnes qui se rétablissent positives à Xinguan
三面蚂蚁金服成功拿到offer,Android开发社招面试经验
R language uses DT function to generate t-distribution density function data and plot function to visualize t-distribution density function data
[depth first search] Ji suanke: a joke of replacement
根据PPG估算血压利用频谱谱-时间深度神经网络【翻】
Online notes
Video based full link Intelligent Cloud? This article explains in detail what Alibaba cloud video cloud "intelligent media production" is
Excel 中VBA脚本的简单应用
打家劫舍III[后序遍历与回溯+动态规划]
Installation and management procedures
Test technology stack arrangement -- self cultivation of test development engineers
The dplyr package of R language performs data grouping aggregation statistical transformations and calculates the grouping mean of dataframe data