主要内容

本页采用了机器翻译。点击此处可查看英文原文。

长度与角度

在不同角度和长度单位之间进行转换,并执行经度绕回;转换沿地球表面测量的距离单位

在完美的球体上,球面两点之间的距离可用角度表示。对于地球、月球及其他行星的球体模型,Mapping Toolbox™ 可实现常见角度单位与长度单位间的球面距离转换。

函数

全部展开

转换度和弧度

deg2rad将角从以度为单位转换为以弧度为单位
rad2deg将角的单位从弧度转换为度

转换符号

degrees2dm 将度转换为度-分
degrees2dms 将度转换为度-分-秒
dm2degrees Convert degrees-minutes to degrees
dms2degrees 将度分秒转换为度

在运行时转换度和弧度

toDegrees将角度转换为度
toRadians将角度转换为弧度
fromDegreesConvert angles from degrees
fromRadiansConvert angles from radians
wrapTo180将角度值绕回至 [–180, 180] 度范围内
wrapTo360将角度值绕回至 [0, 360] 度范围内
wrapToPi将以弧度为单位的角度绕回至 [−π, π]
wrapTo2Pi将角度用弧度表示,绕回至 [0, 2π] 范围
unwrapMultipartUnwrap angles with parts separated by NaN values
km2nm将公里转换为海里
km2sm将公里转换为英里
nm2km将海里转换为公里
nm2sm将海里转换为英里
sm2km将英里转换为公里
sm2nm将英里转换为海里
deg2km将球面距离从度转换为公里
deg2nm将球面距离从度转换为海里
deg2smConvert spherical distance from degrees to statute miles
km2deg将球面距离从公里转换为度
km2rad将球面距离从公里转换为弧度
nm2degConvert spherical distance from nautical miles to degrees
nm2radConvert spherical distance from nautical miles to radians
rad2kmConvert spherical distance from radians to kilometers
rad2nmConvert spherical distance from radians to nautical miles
rad2smConvert spherical distance from radians to statute miles
sm2degConvert spherical distance from statute miles to degrees
sm2radConvert spherical distance from statute miles to radians
str2angleConvert strings to angles in degrees
angl2strConvert angles to character array
map.geodesy.isDegree True if input matches 'degree' and false if 'radian'
validateLengthUnitValidate and standardize length unit
unitsratio单位间换算系数

主题