+ Reply to Thread
Results 1 to 4 of 4

Center of mass

  1. #1
    Registered User
    Join Date
    10-01-2008
    Location
    New York
    Posts
    13

    Center of mass

    Hi,

    I generate a large dataset of X- and Y-coordinates. Togeter, these datapoints form random curves. So, in excel, I want to calculate the Y-coordinate of the center of mass of these datapoints. Can anyone tell me the easiest way to do this?

    Thanks!
    Last edited by MLC; 02-10-2009 at 10:27 AM.

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    re: Center of mass

    Suppose you have the ten vertices of a simple (i.e., no crossing edges) polygon in clockwise order in A2:B11

    1. Duplicate the first point in A12:B12. Then

    2. Area =SUMPRODUCT(A3:A12 - A2:A11, B2:B11 + B3:B12) / 2

    3. Cx =SUMPRODUCT(A2:A11 + A3:A12, A3:A12 * B2:B11 - A2:A11 * B3:B12) / 6 / Area

    4. Cy =SUMPRODUCT(B2:B11 + B3:B12, B2:B11 * A3:A12 - B3:B12 * A2:A11) / 6 / Area
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Registered User
    Join Date
    10-01-2008
    Location
    New York
    Posts
    13

    Re: Center of mass

    This works, thanks!

  4. #4
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Center of mass

    You’re welcome. Would you please mark the thread as Solved?

    Click the Edit button on your first post in the thread

    Click Go Advanced, select [SOLVED] from the Prefix dropdown, then click Save Changes

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1