当前位置:网站首页>MATLAB中deg2rad和rad2deg函数的使用
MATLAB中deg2rad和rad2deg函数的使用
2022-07-06 11:21:00 【jk_101】
目录
deg2rad函数的功能是将角从以度为单位转换为以弧度为单位。
rad2deg函数的功能是将角的单位从弧度转换为度。
语法
R = deg2rad(D)
D = rad2deg(R)
说明
对于 D 的每个元素,R = deg2rad(D) 将角的单位从度转换为弧度。
D = rad2deg(R) 将 R 中每个元素的角单位从弧度转换为度。
示例
以弧度为单位的直角
将 90 度角转换为以弧度为单位。
R = deg2rad(90)
R = 1.5708
曲面距离
以度为单位指定慕尼黑和班加罗尔之间的球面距离和地球的平均半径(以千米为单位)。计算慕尼黑和班加罗尔之间的距离(沿地球曲面度量,以千米为单位)。
D = 64.7;
radEarth = 6371;
R = deg2rad(D);
dist = radEarth*R
dist = 7.1943e+03
pi 以度为单位
将 pi 转换为以度为单位。
D = rad2deg(pi)
D = 180
球面距离
指定地球的平均半径和沿着地球表面测量的从慕尼黑到班加罗尔的距离(以千米为单位)。以度为单位计算慕尼黑和班加罗尔之间的球面距离。
dist = 7194;
radEarth = 6371;
R = dist/radEarth;
D = rad2deg(R)
D = 64.6972
输入参数说明
D - 以度为单位的角
以度为单位的角,指定为标量、向量、矩阵或多维数组。如果 D 包含复数元素,则 deg2rad 将分别转换实部和虚部。
数据类型: single | double
复数支持: 是
R - 以弧度为单位的角
以弧度为单位的角,指定为标量、向量、矩阵或多维数组。如果 R 包含复数元素,则 rad2deg 将分别转换实部和虚部。
数据类型: single | double
复数支持: 是
输出参数说明
R - 以弧度为单位的角
以弧度为单位的角,以标量、向量、矩阵或多维数组形式返回。R 的大小与 D 相同。
D - 以度为单位的角
以度为单位的角,以标量、向量、矩阵或多维数组形式返回。D 的大小与 R 的大小相同。
边栏推荐
- AUTOCAD——中心线绘制、CAD默认线宽是多少?可以修改吗?
- Don't miss this underestimated movie because of controversy!
- Characteristic colleges and universities, jointly build Netease Industrial College
- 一种用于夜间和无袖测量血压手臂可穿戴设备【翻译】
- Online notes
- 关于静态类型、动态类型、id、instancetype
- openmv4 学习笔记1----一键下载、图像处理背景知识、LAB亮度-对比度
- 青龙面板最近的库
- 全套教学资料,阿里快手拼多多等7家大厂Android面试真题
- Summary of performance knowledge points
猜你喜欢
AvL树的实现
A method of removing text blur based on pixel repair
三年Android开发,2022疫情期间八家大厂的Android面试经历和真题整理
涂鸦智能在香港双重主板上市:市值112亿港元 年营收3亿美元
AIRIOT物联网平台赋能集装箱行业构建【焊接工位信息监控系统】
From 2022 to 2024, the list of cifar azrieli global scholars was announced, and 18 young scholars joined 6 research projects
Summary of performance knowledge points
Analysis of frequent chain breaks in applications using Druid connection pools
About NPM install error 1
PMP每日一练 | 考试不迷路-7.6
随机推荐
Interface test tool - postman
Help improve the professional quality of safety talents | the first stage of personal ability certification and assessment has been successfully completed!
星诺奇科技IPO被终止:曾拟募资3.5亿元 年营收3.67亿
上海部分招工市場對新冠陽性康複者拒絕招錄
Reptiles have a good time. Are you full? These three bottom lines must not be touched!
RedisSystemException:WRONGTYPE Operation against a key holding the wrong kind of value
Solution of intelligent management platform for suppliers in hardware and electromechanical industry: optimize supply chain management and drive enterprise performance growth
The dplyr package of R language performs data grouping aggregation statistical transformations and calculates the grouping mean of dataframe data
AcWing 3537.树查找 完全二叉树
Online notes
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
快速幂模板求逆元,逆元的作用以及例题【第20届上海大学程序设计联赛夏季赛】排列计数
Openmv4 learning notes 1 --- one click download, background knowledge of image processing, lab brightness contrast
中缀表达式转后缀表达式详细思路及代码实现
Jushan database was among the first batch of financial information innovation solutions!
Describe the process of key exchange
Simple understanding of MySQL database
R语言ggplot2可视化时间序列柱形图:通过双色渐变配色颜色主题可视化时间序列柱形图
R语言使用rchisq函数生成符合卡方分布的随机数、使用plot函数可视化符合卡方分布的随机数(Chi Square Distribution)
手写一个的在线聊天系统(原理篇1)