matlab 坐标系转换
生活随笔
收集整理的這篇文章主要介紹了
matlab 坐标系转换
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
1、極坐標轉化為直角坐標??cart2pol
? ?cart2pol:
? ? ? [theta,rho] = cart2pol(x,y)
? ? ? [theta,rho,z] = cart2pol(x,y,z)
? ? ? ?theta:與X軸正半軸的夾角,為弧度 ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?rho: ?與原點的距離
[theta,rho] = cart2pol(sqrt(3),1)theta =0.5236 rho =2.0000 >> [theta,rho,z] = cart2pol(sqrt(3),1,2)theta =0.5236 rho =2.0000 z =2
2、直角坐標轉化為極坐標?pol2cart?
? ? pol2cart?
? ? ? [x,y] = pol2cart(theta,rho)
? ? ? [x,y,z] = pol2cart(theta,rho,z)
?
總結
以上是生活随笔為你收集整理的matlab 坐标系转换的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 【动画演示软件】Focusky教程 |
- 下一篇: openMv入手