title: Using matlab to calculate the properties of a polygon defined as a list of points
body: <p>Does MATLAB have a built-in function to find general properties like center of mass &amp; moments of inertia for a polygon defined as a list of (non-integer valued) points?  </p>
  
  <p>regionprops performs this task for integer valued points, on the assumption that these represent indices of pixels in an image.  But the only functions I can find that treat non integral point lists are polyarea and inpolygon.  </p>
  
  <p>My kludge for now is to create a bwconncomp structure with all the points multiplied by some large value (like 10,000), then feeding it in to regionprops, but wondered if there is a more elegant solution.</p>