Projection between two coordinate systems
古いコメントを表示

I have two coordinate systems as the picture shown. I know the origin and unit vectors of the two coordinate systems. now, I want to project the coordinates in one coordinate system to another system. how could I do using Matlab? Thanks in advance!
回答 (1 件)
Honglei Chen
2018 年 9 月 24 日
Let's use coodinate system g as the reference and assume your coordinates are Pg = [xg;yg;zg]. For coordinate system l, the orgin is Ol = [xolg;yolg;zolg] and the three unit vectors are Xlg, Ylg, and Zlg. So you can define the transform matrix as [Xlg Ylg Zlg]. Then the new coordinate Pl can be represented as
Pl = M.'*(Pg-Ol)
If you have access to Phased Array System Toolbox, then you can try using
<https://www.mathworks.com/help/phased/ref/local2globalcoord.html>
or
<https://www.mathworks.com/help/phased/ref/global2localcoord.htm> l
depending on which one you want to use as a reference.
HTH
3 件のコメント
Yang Lu
2018 年 9 月 25 日
Honglei Chen
2018 年 9 月 25 日
Could you be more specific? From my perspective, a line is a collection of points, so you can just line up multiple points in Pg and everything should work as is.
HTH
Yang Lu
2018 年 9 月 25 日
カテゴリ
ヘルプ センター および File Exchange で Antennas, Microphones, and Sonar Transducers についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
