Matlab椭圆拟合函数
function [varargout]=ellipsefit(x,y) %ELLIPSEFIT Stable Direct Least Squares Ellipse Fit to Data. % [Xc,Yc,A,B,Phi,P]=ELLIPSEFIT(X,Y) finds the least squares ellipse that % best fits the data in X and Y. X and Y must have at least 5 data points. % Xc and Yc are the x- and y-axis center of the ellipse respectively. % A and B are the major and minor axis of the ellipse respectively. % Phi is the radian angle of the major axis with respect to the x-axis. % P is a vector containing the general conic parameters of the ellipse.
下载地址
用户评论
很有用,感谢!
运行了,能拟合出来。
很好!我试了可以运行!
资源不错,相当好用,
这个很好用,没具体看里面的代码,只是想拟合一个椭圆,然后用这个函数轻松完成