当前位置:网站首页>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.5708Surface 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+03pi In degrees
take pi Convert to degrees .
D = rad2deg(pi)
D = 180Spherical 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 .
边栏推荐
- [matlab] Simulink the input and output variables of the same module cannot have the same name
- Describe the process of key exchange
- How word displays modification traces
- 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
- Actf 2022 came to a successful conclusion, and 0ops team won the second consecutive championship!!
- Openmv4 learning notes 1 --- one click download, background knowledge of image processing, lab brightness contrast
- 朗坤智慧冲刺科创板:年营收4亿 拟募资7亿
- Leetcode topic [array] - 119 Yang Hui triangle II
- Tensorflow and torch code verify whether CUDA is successfully installed
- Use map function and split function to type multiple elements in one line
猜你喜欢
Benefit a lot, Android interview questions
![Optical blood pressure estimation based on PPG and FFT neural network [translation]](/img/88/2345dac73248a5f0f9fa3142ca0397.png)
Optical blood pressure estimation based on PPG and FFT neural network [translation]

Druid 数据库连接池 详解

Method of accessing mobile phone storage location permission under non root condition

How to type multiple spaces when editing CSDN articles

关于静态类型、动态类型、id、instancetype

渲大师携手向日葵,远控赋能云渲染及GPU算力服务

五金机电行业供应商智慧管理平台解决方案:优化供应链管理,带动企业业绩增长

openmv4 学习笔记1----一键下载、图像处理背景知识、LAB亮度-对比度
![Estimate blood pressure according to PPG using spectral spectrum time depth neural network [turn]](/img/f2/194ae452609d3e474b7b580d61bf4f.png)
Estimate blood pressure according to PPG using spectral spectrum time depth neural network [turn]
随机推荐
R语言ggplot2可视化时间序列柱形图:通过双色渐变配色颜色主题可视化时间序列柱形图
Based on butterfly species recognition
Countdown 2 days | live broadcast preview of Tencent cloud message queue data import platform
Handwritten online chat system (principle part 1)
R language uses the order function to sort the dataframe data, and descending sorting based on a single field (variable)
星诺奇科技IPO被终止:曾拟募资3.5亿元 年营收3.67亿
渲大师携手向日葵,远控赋能云渲染及GPU算力服务
Unlock 2 live broadcast themes in advance! Today, I will teach you how to complete software package integration Issues 29-30
Some recruitment markets in Shanghai refuse to recruit patients with covid-19 positive
QPushButton绑定快捷键的注意事项
Don't miss this underestimated movie because of controversy!
Simple understanding of MySQL database
Solution of intelligent management platform for suppliers in hardware and electromechanical industry: optimize supply chain management and drive enterprise performance growth
Characteristic colleges and universities, jointly build Netease Industrial College
裕太微冲刺科创板:拟募资13亿 华为与小米基金是股东
Interview assault 63: how to remove duplication in MySQL?
数学知识——高斯消元(初等行变换解方程组)代码实现
PMP每日一练 | 考试不迷路-7.6
抽象类与抽象方法
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