当前位置:网站首页>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 .
边栏推荐
- R语言dplyr包进行数据分组聚合统计变换(Aggregating transforms)、计算dataframe数据的分组均值(mean)
- A full set of teaching materials, real questions of Android interview of 7 major manufacturers including Alibaba Kwai pinduoduo
- [translation] a GPU approach to particle physics
- 快速幂模板求逆元,逆元的作用以及例题【第20届上海大学程序设计联赛夏季赛】排列计数
- How are you in the first half of the year occupied by the epidemic| Mid 2022 summary
- 全套教学资料,阿里快手拼多多等7家大厂Android面试真题
- pytorch常见损失函数
- Solution of intelligent management platform for suppliers in hardware and electromechanical industry: optimize supply chain management and drive enterprise performance growth
- Tensorflow and torch code verify whether CUDA is successfully installed
- Analysis of frequent chain breaks in applications using Druid connection pools
猜你喜欢

wx小程序学习笔记day01

Reptiles have a good time. Are you full? These three bottom lines must not be touched!

Sanmian ant financial successfully got the offer, and has experience in Android development agency recruitment and interview

数学知识——高斯消元(初等行变换解方程组)代码实现

Visual Studio Code启动时提示“Code安装似乎损坏。请重新安装。”、标题栏显示“不受支持”信息的解决办法

安装Mysql报错:Could not create or access the registry key needed for the...

If you have any problems, you can contact me. A rookie ~

Countdown 2 days | live broadcast preview of Tencent cloud message queue data import platform

同宇新材冲刺深交所:年营收9.47亿 张驰与苏世国为实控人

Handwritten online chat system (principle part 1)
随机推荐
[translation] a GPU approach to particle physics
能源行业的数字化“新”运维
史上超级详细,想找工作的你还不看这份资料就晚了
R language ggplot2 visualization: use the ggstripchart function of ggpubr package to visualize the grouped dot strip plot, and set the add parameter to add box plots for different levels of dot strip
Intelligent supply chain management system solution for hardware and electromechanical industry: digital intelligent supply chain "creates new blood" for traditional industries
Druid 数据库连接池 详解
星诺奇科技IPO被终止:曾拟募资3.5亿元 年营收3.67亿
Word如何显示修改痕迹
提前解锁 2 大直播主题!今天手把手教你如何完成软件包集成?|第 29-30 期
Don't miss this underestimated movie because of controversy!
Handwritten online chat system (principle part 1)
Optical blood pressure estimation based on PPG and FFT neural network [translation]
php+redis实现超时取消订单功能
Method of accessing mobile phone storage location permission under non root condition
wx小程序学习笔记day01
If you have any problems, you can contact me. A rookie ~
The second day of rhcsa study
Video based full link Intelligent Cloud? This article explains in detail what Alibaba cloud video cloud "intelligent media production" is
RT-Thread 组件 FinSH 使用时遇到的问题
ModuleNotFoundError: No module named ‘PIL‘解决方法