Code covered by the BSD License  

Highlights from
Linear Regression with Errors in X and Y

image thumbnail

Linear Regression with Errors in X and Y

by

 

Calculates slope and intercept for linear regression of data with errors in X and Y.

ellipse(Xc,Yc,dX,dY,N_p)
function [X Y] = ellipse(Xc,Yc,dX,dY,N_p)
%calculates an elipse

theta=linspace(0,2*pi,N_p);

X=Xc+dX*cos(theta)-dY*sin(theta);
Y=Yc+dX*cos(theta)+dY*sin(theta);

X=Xc+dX*cos(theta);
Y=Yc+dY*sin(theta);

Contact us