简体   繁体   English

用Matlab求解一组点的圆锥方程

[英]solving conic equation for a set of points using Matlab

let's say I have 6 points (x,y)and the general equation for a conic section Ax^2+Bxy+Cy^2+Dx+Ey+F=0. 假设我有6个点(x,y),并且圆锥截面的一般方程为Ax ^ 2 + Bxy + Cy ^ 2 + Dx + Ey + F = 0。 is there a way I can find A,B,C,D,E,F? 有没有办法找到A,B,C,D,E,F?

I know that for a linear equation I can solve this with a matrix but it won't seem to work since all of the equation are equal to 0 any help on this topic would be appreciated 我知道对于线性方程式,我可以使用矩阵来解决,但似乎不起作用,因为所有方程式均等于0,对此主题的任何帮助将不胜感激

Maybe this (x and y are column vectors): 也许这(x和y是列向量):

M=[x.^2, x.*y, y.^2, x, y, x*0+1];
[U,S,V]=svd(M)
Sol=V(:,end) %A,B,C,D,E,F

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM