Landcruiser87
New Member
- Joined
- Feb 7, 2008
- Messages
- 16
Helloooo to the masses of fellow coders,
After hours of pouring over the world wide web looking for sample code that might be able to accomplish the title of this post, i've come up empty handed.
What i'm attempting is to create a vba routine that can take a subset of data
Ex:
X Y
29.70 264.00
25.50 269.00
27.90 265.00
37.20 269.00
54.90 262.00
41.10 270.00
And have a vba routine find its centroid, draw a std ellipse, then rotate it 360° to find the minimum area and thus find the angle at which the ellipse best represents the weighting of the data.
I'd like to use matrices and arrays in VBA, but am having trouble finding any examples to work off. So i pose the question to you my friends, Have any of your tried this before? Help this struggling scientist figure out something that seems easy but has thrown up more road blocks than the 405N at rush hour. ( i live in cali )
Thanks !
After hours of pouring over the world wide web looking for sample code that might be able to accomplish the title of this post, i've come up empty handed.
What i'm attempting is to create a vba routine that can take a subset of data
Ex:
X Y
29.70 264.00
25.50 269.00
27.90 265.00
37.20 269.00
54.90 262.00
41.10 270.00
And have a vba routine find its centroid, draw a std ellipse, then rotate it 360° to find the minimum area and thus find the angle at which the ellipse best represents the weighting of the data.
I'd like to use matrices and arrays in VBA, but am having trouble finding any examples to work off. So i pose the question to you my friends, Have any of your tried this before? Help this struggling scientist figure out something that seems easy but has thrown up more road blocks than the 405N at rush hour. ( i live in cali )
Thanks !