I need to set 10 data points ( x,y ) in this equation:
x,y
ay² + bxy + cx + dy + e = x²
He said this is an ellipse-like equation. I cannot do this with the usual curve fitting tools because it is not a function (one x corresponds to 2 y s). I cannot either use the ellipse curve setting because there is no c*x and d*y in the ellipse equation. Any ideas?
x
y
c*x
d*y
Thanks in advance.
EDIT: Both Oil and AK4749 gave the correct answer! Thanks guys!
This is a linear system with variables [abcde]. You can use \ to solve it:
\
x=rand(10,1); y=rand(10,1); [y.^2,x.*y,x,y,ones(numel(x),1)]\x.^2 ans = -0.4437 %% a 1.1034 %% b 0.5337 %% c -0.2808 %% d 0.0402 %% e
Take a picture:
http://www.mathworks.com/matlabcentral/fileexchange/3215-fitellipse
Source: https://habr.com/ru/post/1437674/More articles:iOS NSMethodSignature (or encoding) NSBlock - iosHow to add custom actions to sharepoint that are visible only to a specific group - sharepointmatching numpy patterns using matrix multiplications - pythonQuerying xml children with namespace prefix using LINQ to XML - c #adding a new element to a jquery sort that is not picked up by the update - jquerythere is no invitation to enter, but receiving 403 status errors - tomcatToolkit not working on methods called by reflection - javaWhy does the "Initial Size" change? - sql-serverTest Explorer> Run All: System.Exception: Could not find the main assembly of the application - c #Does this Groovy token '->' have a name or an alias? - closuresAll Articles