I'd like to fit an ellipse with no tilt on my data. This is the equation of an ellipse with no tilt:
a*x^2 + b*y^2 + c*x + d*y = e
I found this solution (https://stackoverflow.com/a/12717181/3179989) interesting, but not sure how to change the parameters to get the solution to my problem.
Any help is appreciated.
EDIT: here is the code I am using:
[y.^2,x,y,ones(numel(x),1)]\x.^2
ans =
1.0e+04 *
-0.0000
0.0168
-0.0014
3.6390
This does seem to work:
The blue is the original ellipse and the black is the non-rotated ellipse