Help for Excel Solver on a ellipse fit problem [URGENT]

Corsa88

New Member
Joined
May 27, 2014
Messages
40
Greetings guys

I have a set of scatter data x and y
xy
00.0947
10.3099
20.6277
31.0481
41.5711
52.1967
62.9249
73.7557
84.6891
95.7251

<tbody>
</tbody>

What I'm trying to do is to fit an ellipse through this data.

My approach is first to use the algebraic equation for an ellipse:

ax² + bxy + cy² + dx + ey + f = 0

I then created one additional column that allows me to compute the value of the ellipse equation for each pair of (x,y) coordinate. Also I assigned cells for the parameters in the ellipse equation: a, b, c, d, e, f

Then, to obtain the ellipse fit (which meant that I had to find the values of a,b,c,d,e,f which gave ellipse equation values = 0 for every pair of (x,y) point), what I did was to use the Solver feature in Excel:

such that:

Objective : Ellipse_equation value for first pair of (x,y) point = 0

While changing: a, b, c, d, e, f

Constraints: Ellipse_equation value for each and other pairs of (x,y) points = 0

However, the outcome of this process simply led the values of a,b,c,d,e,f = 0. I know this satisfies the condition, but it doesn't define an ellipse.

Anyone know what should I include in or edit the approach that I'm taking for this problem? Have been tearing out my hair in frustration on this one.

Thanks to everybody in advance. Would really appreciate your advice.

Thanks and regards
Corse
 

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"
I'll put the current workbook up at the same link in a minute, and let you soldier on.

EDIT: Done.

For the Forward Transform =MMULT(MMULT(B22:D24, B27:D29), B32:D34) -> does this mean a rotation,translation and followed by a scaling operation?

So if I need to translate the point of pivot to the origin, would it imply that I would set dX =0, dY = 0?
 
Upvote 0
=MMULT(MMULT(B22:D24, B27:D29), B32:D34)

The resulting matrix performs the operations in the order in which they appear.

So if I need to translate the point of pivot to the origin, would it imply that I would set dX =0, dY = 0?
No, that doesn't do anything. If you want to move the point {x,y} to the origin, the translation is {-x,-y}
 
Upvote 0
=MMULT(MMULT(B22:D24, B27:D29), B32:D34)

The resulting matrix performs the operations in the order in which they appear.


No, that doesn't do anything. If you want to move the point {x,y} to the origin, the translation is {-x,-y}

Oh i see, so i can manually override the translation parameters in that case. I'll try that to see if it would be able to define the best fit ellipse pivot point.
 
Upvote 0

Forum statistics

Threads
1,214,976
Messages
6,122,541
Members
449,089
Latest member
davidcom

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top