Center of Mass - Matrix Representation
|
04-08-2015, 05:48 PM
(This post was last modified: 04-08-2015 05:51 PM by Thomas Ritschel.)
Post: #5
|
|||
|
|||
RE: Center of Mass - Matrix Representation
(04-07-2015 06:33 AM)akmon Wrote: I´ve tried a little example to manage the program, but I didn´t get the results I expected. I want to know the center of gravity of a triangle. The coordinates are (0,0), (5,0) and (5,5). I suppose mass 1 for every points, so I write this matrix: Note that the matrix does not contain the coordinates and associated masses, but rather it's a grid representation of point masses. There is an explanation of the matrix in Eddie's blog. For your example the matrix may be entered as (6x6 matrix, e.g. 0 to 5 = 6 grid points): [[1 0 0 0 0 1][0 0 0 0 0 0][0 0 0 0 0 0][0 0 0 0 0 0][0 0 0 0 0 0][0 0 0 0 0 1]] This will yield the center of mass at grid position (13/3 8/3), having a (+1 +1) offset with respect to your solution (note that the origin (0 0) is at grid position (1 1)). |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
Center of Mass - Matrix Representation - Eddie W. Shore - 04-05-2015, 04:05 AM
RE: Center of Mass - Matrix Representation - akmon - 04-05-2015, 10:29 PM
RE: Center of Mass - Matrix Representation - salvomic - 04-06-2015, 03:09 PM
RE: Center of Mass - Matrix Representation - akmon - 04-07-2015, 06:33 AM
RE: Center of Mass - Matrix Representation - Thomas Ritschel - 04-08-2015 05:48 PM
RE: Center of Mass - Matrix Representation - chromos - 07-03-2015, 03:40 PM
RE: Center of Mass - Matrix Representation - Thomas Ritschel - 04-08-2015, 07:35 PM
RE: Center of Mass - Matrix Representation - akmon - 04-09-2015, 10:48 AM
|
User(s) browsing this thread: 4 Guest(s)