필터 지우기
필터 지우기

Projection between two coordinate systems

조회 수: 7 (최근 30일)
Yang Lu
Yang Lu 2018년 9월 24일
댓글: Yang Lu 2018년 9월 25일
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
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
Honglei Chen
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
Yang Lu 2018년 9월 25일
I am sorry for that I did not make clear. I got a series of coordinates of one profile in one coordinate system and now I want to project all the coordinates to another coordinate system. Hope the following picture can help to understand my question. So I can get the coordinates in the current coordinate system. I do not think the active and passive coordinate transformation is useful here.
Merci!

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Programming에 대해 자세히 알아보기

제품


릴리스

R2018a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by