1. 程式人生 > >MATLAB中角度轉換成弧度函式——degtorad

MATLAB中角度轉換成弧度函式——degtorad

degtorad

Convert angles from degrees to radians        

將角度從度數轉換為弧度

Syntax:angleInRadians = degtorad(angleInDegrees)

語法:弧度 = degtorad(角度)

Description

angleInRadians = degtorad(angleInDegrees) converts angle units from degrees to radians. This is both an angle conversion function and a distance conversion function, since arc length can be a measure of distance in either radians or degrees, provided that the radius is known.

描述:angleInRadians = degtorad(angleInDegrees)將角度單位從度數轉換為弧度。這是角度轉換函式和距離轉換函式,因為弧長可以是弧度或度數的距離的度量,只要半徑是已知的。

Examples
Show that there are 2π radians in a full circle:
2*pi - degtorad(360)
ans =

     0

例子

顯示整個圓圈內有2π弧度: