matlab中pol2cart()函数
matlab中pol2cart()函數(shù)
說(shuō)明文件
pol2cart Transform polar to Cartesian coordinates.
[X,Y] = pol2cart(TH,R) transforms corresponding elements of data stored in polar coordinates (angle TH, radius R) to Cartesian coordinates X,Y. The arrays TH and R must the same size (or either can be scalar). TH must be in radians.
[X,Y,Z] = pol2cart(TH,R,Z) transforms corresponding elements of data stored in cylindrical coordinates (angle TH, radius R, height Z) to Cartesian coordinates X,Y,Z. The arrays TH, R, and Z must be the same size (or any of them can be scalar). TH must be in radians.
Class support for inputs TH,R,Z:
float: double, single
注釋
函數(shù)功能:
把極坐標(biāo)轉(zhuǎn)化為笛卡爾坐標(biāo);
使用方法:
(1)極坐標(biāo)(角度TH,半徑R),
笛卡爾坐標(biāo):(X,Y);
[X,Y] = pol2cart(TH,R) 。
注意: TH的單位必須是弧度。
(2) [X,Y,Z] = pol2cart(TH,R,Z) 將以圓柱坐標(biāo)(角度TH,半徑R,高度Z)存儲(chǔ)的數(shù)據(jù)的相應(yīng)元素轉(zhuǎn)換為直角坐標(biāo)X,Y,Z。數(shù)組TH、R和Z的大小必須相同(或者它們中的任何一個(gè)都可以是標(biāo)量)。 TH必須是弧度單位。
總結(jié)
以上是生活随笔為你收集整理的matlab中pol2cart()函数的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: plsql导入excel时无odbc i
- 下一篇: matlab中使用ode方法解范德波尔微