How can I find the center of gravity of a moving object in simulink ?

11 views (last 30 days)
The object is physically no present.There is Robot which is being simulated in simulink and I've to find cg of that bot.
If it is possible then help me.
Thank you in advance.

Answers (1)

Jim Riggs
Jim Riggs on 7 Jan 2019
Edited: Jim Riggs on 7 Jan 2019
The location of the mass center of a collection of parts is compued by finding the point about which the mass moment is zero, (in other words, the "average" mass moment). This is done as follows;
1) Compute the mass moment of each part of the system:
Mass moment = position vector (of CG) x mass - this gives the mass moment about the x, y, and z axis.
2) sum all of the mass moment vectors (Total x, y, and z moment)
3) divide the total moment vector by the total mass (sum of all the masses)
This is a vector that points to the location of the mass center.
(Note that all of the position vectors must be in the same reference frame. The resulting mass center is in this reference frame)
  1 Comment
Jim Riggs
Jim Riggs on 7 Jan 2019
Here is an example in 2 dimensions:
The total mass moment, M = R1*m1 + R2*m2 + R3*m3
(M is a 2 elememt array, with an x, and a y component)
The Mass center is located at Rc = M/(m1+m2+m3)
Rc is a 2-D vector, containing the x,y position of the mass cener.
MatlabAnswers 20190107.JPG

Sign in to comment.


Find more on General Applications in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by