日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

MatLab函数:pol2cart()

發(fā)布時間:2023/12/14 编程问答 33 豆豆
生活随笔 收集整理的這篇文章主要介紹了 MatLab函数:pol2cart() 小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.

函數(shù)功能

把極坐標或圓柱坐標轉(zhuǎn)換為直角坐標(笛卡兒坐標)

使用方法

[X,Y] = POL2CART(TH,R)將極坐標(角度TH和半徑R)存儲的數(shù)據(jù)中相應的元素轉(zhuǎn)換到笛卡兒坐標X,Y。數(shù)組TH和R必須大小相同(或者二者皆可標量),TH必須是弧度值。?matlab

[X,Y,Z] = POL2CART(TH,R,Z)將圓柱坐標(角度TH、半徑R和高度Z)存儲的數(shù)據(jù)中相應的元素轉(zhuǎn)換到笛卡兒坐標X,Y,Z。數(shù)組TH、R和Z必須大小相同(或者其中任何一個皆可標量),TH必須是弧度值。

matlab

輸入TH,R,Z支持的類型:
float:double, single

pol2cart?

Transform polar or cylindrical coordinates to Cartesian

Syntax

  • [X,Y] = pol2cart(THETA,RHO) [X,Y,Z] = pol2cart(THETA,RHO,Z)

Description

[X,Y] = pol2cart(THETA,RHO)?transforms the polar coordinate data stored in corresponding elements of?THETA?and?RHO?to two-dimensional Cartesian, or?xy, coordinates. The arrays?THETA?and?RHO?must be the same size (or either can be scalar). The values in?THETA?must be in radians.

[X,Y,Z] = pol2cart(THETA,RHO,Z)?transforms the cylindrical coordinate data stored in corresponding elements of?THETA,?RHO, and?Z?to three-dimensional Cartesian, or?xyz, coordinates. The arrays?THETA?,?RHO, and?Z?must be the same size (or any can be scalar). The values in?THETA?must be in radians.

Algorithm

The mapping from polar and cylindrical coordinates to Cartesian coordinates is:


總結

以上是生活随笔為你收集整理的MatLab函数:pol2cart()的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網(wǎng)站內(nèi)容還不錯,歡迎將生活随笔推薦給好友。