This preview shows page 1. Sign up to view the full content.
Unformatted text preview: % % equation of ellipsoid with center (xo,yo,zo) and radius for each axis (x,y,z) = (a,b,c): % (( x - xo )^2 / a^2) + (( y - yo )^2 / b^2) + (( z - zo )^2 / c^2) = 1 % % This function below creates a scalar value to % return to the fminsearch function in elec_fit_sphere. E = ( (X-xo).^2 )/r(1).^2 + ((Y-yo).^2)/r(2).^2 + ((Z-zo).^2)/r(3).^2 - 1; f = sum( E .* E ); % sum of squares returned return...
View Full Document
This note was uploaded on 10/04/2010 for the course ENG 42336 taught by Professor Thomasholland during the Spring '10 term at UC Davis.
- Spring '10