当前位置:网站首页>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 .
边栏推荐
- R language uses rchisq function to generate random numbers that conform to Chi square distribution, and uses plot function to visualize random numbers that conform to Chi square distribution
- Php+redis realizes the function of canceling orders over time
- [depth first search] Ji suanke: Square
- 2022.2.12
- helm部署etcd集群
- Yutai micro rushes to the scientific innovation board: Huawei and Xiaomi fund are shareholders to raise 1.3 billion
- 基于蝴蝶种类识别
- Online notes
- Don't miss this underestimated movie because of controversy!
- 黑马--Redis篇
猜你喜欢
Solve DoS attack production cases
Oracle advanced (IV) table connection explanation
A method of removing text blur based on pixel repair
Binary search tree
C language daily practice - day 22: Zero foundation learning dynamic planning
中缀表达式转后缀表达式详细思路及代码实现
Computer network: sorting out common network interview questions (I)
How are you in the first half of the year occupied by the epidemic| Mid 2022 summary
php+redis实现超时取消订单功能
MRO industrial products enterprise procurement system: how to refine procurement collaborative management? Industrial products enterprises that want to upgrade must see!
随机推荐
About static type, dynamic type, ID, instancetype
同宇新材冲刺深交所:年营收9.47亿 张驰与苏世国为实控人
倒计时2天|腾讯云消息队列数据接入平台(Data Import Platform)直播预告
助力安全人才专业素养提升 | 个人能力认证考核第一阶段圆满结束!
R language uses the order function to sort the dataframe data, and descending sorting based on a single field (variable)
Countdown 2 days | live broadcast preview of Tencent cloud message queue data import platform
Solution of intelligent management platform for suppliers in hardware and electromechanical industry: optimize supply chain management and drive enterprise performance growth
R语言使用order函数对dataframe数据进行排序、基于单个字段(变量)进行降序排序(DESCENDING)
【论文笔记】TransUNet: Transformers Make StrongEncoders for Medical Image Segmentation
The list of people who passed the fifth phase of personal ability certification assessment was published
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
MRO工业品企业采购系统:如何精细化采购协同管理?想要升级的工业品企业必看!
LeetCode-1279. Traffic light intersection
Php+redis realizes the function of canceling orders over time
Optical blood pressure estimation based on PPG and FFT neural network [translation]
Noninvasive and cuff free blood pressure measurement for telemedicine [translation]
主从搭建报错:The slave I/O thread stops because master and slave have equal MySQL serv
How are you in the first half of the year occupied by the epidemic| Mid 2022 summary
wx小程序学习笔记day01
AutoCAD - what is the default lineweight for centerline drawing and CAD? Can I modify it?