# How do I find a center of rotation having a set of 3D points ?

조회 수: 22(최근 30일)
Aurélien Thomas 2020년 3월 3일
답변: Image Analyst 2020년 3월 3일
I have to find the position of a center of rotation for an object. For that I have the X,Y and Z coordinate of my object.
To clarify : The coordinates are from a pendulum oscillating and I have to find the center of the pivotating link
I haven't found a solution yet and I don't really know how to proceed.
##### 댓글 수: 1표시숨기기 없음
James Tursa 2020년 3월 3일
You have 3D coordinates of the endpoint? Can't you just fit a circle/sphere to those points and then the center of the circle/sphere would be your pivoting link?

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

### 채택된 답변

Image Analyst 2020년 3월 3일

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

### 추가 답변(1개)

Stijn Haenen 2020년 3월 3일
If each point represent the same amount of mass, the center of rotation is just the average position of all poisitions, when each point has its own mass you should use this formula to compute the center of mass:
R=1/sum(m_i)*sum(r_i * m_i)
##### 댓글 수: 1표시숨기기 없음
Image Analyst 2020년 3월 3일
The center of a circle is not at the center of the average of points in some arc that's a portion of the circle (like their pendulum).

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

### Community Treasure Hunt

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

Start Hunting!