当前位置:网站首页>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+03pi 以度为单位
将 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 的大小相同。
边栏推荐
- 提前解锁 2 大直播主题!今天手把手教你如何完成软件包集成?|第 29-30 期
- Take a look at how cabloyjs workflow engine implements activiti boundary events
- How to type multiple spaces when editing CSDN articles
- 根据PPG估算血压利用频谱谱-时间深度神经网络【翻】
- tensorflow和torch代码验证cuda是否安装成功
- Abstract classes and abstract methods
- Solution of intelligent management platform for suppliers in hardware and electromechanical industry: optimize supply chain management and drive enterprise performance growth
- QLabel 跑马灯文字显示
- Computer network: sorting out common network interview questions (I)
- Tensorflow and torch code verify whether CUDA is successfully installed
猜你喜欢

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

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

Helm deploy etcd cluster

基于蝴蝶种类识别

深度循环网络长期血压预测【翻译】

pychrm社区版调用matplotlib.pyplot.imshow()函数图像不弹出的解决方法

About static type, dynamic type, ID, instancetype

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

How to type multiple spaces when editing CSDN articles

C#/VB. Net to add text / image watermarks to PDF documents
随机推荐
R语言使用dt函数生成t分布密度函数数据、使用plot函数可视化t分布密度函数数据(t Distribution)
wx小程序学习笔记day01
安装Mysql报错:Could not create or access the registry key needed for the...
R language uses DT function to generate t-distribution density function data and plot function to visualize t-distribution density function data
朗坤智慧冲刺科创板:年营收4亿 拟募资7亿
AcWing 3537.树查找 完全二叉树
[translation] a GPU approach to particle physics
Lucun smart sprint technology innovation board: annual revenue of 400million, proposed to raise 700million
Based on butterfly species recognition
Noninvasive and cuff free blood pressure measurement for telemedicine [translation]
包装行业商业供应链管理平台解决方案:布局智慧供应体系,数字化整合包装行业供应链
The nearest library of Qinglong panel
How are you in the first half of the year occupied by the epidemic| Mid 2022 summary
php+redis实现超时取消订单功能
【论文笔记】TransUNet: Transformers Make StrongEncoders for Medical Image Segmentation
LeetCode-1279. 红绿灯路口
Online notes
Characteristic colleges and universities, jointly build Netease Industrial College
Handwritten online chat system (principle part 1)
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