elec_fit_ellipse - function[r,x,y,z,Xe,Ye,Ze =...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: function [r,x,y,z,Xe,Ye,Ze] = elec_fit_ellipse(X,Y,Z,xo,yo,zo,gridSize,plot) % elec_fit_ellipse - Find radii of ellipse and elliptical points for XYZ % % Usage: [r,x,y,z,Xe,Ye,Ze] = elec_fit_ellipse(X,Y,Z,xo,yo,zo,gridSize,plot) % % Notes: The general formula for a 3D ellipse, with center (xo,yo,zo) and % major axis length 2a in X, 2b in Y, and 2c in Z, is given by: % % (x-xo/a)^2 + (y-yo/b)^2 + (z-zo/c)^2 = 1 % % This function takes arguments for cartesian co-ordinates % of X,Y,Z and returns the radius 'r(x,y,z)' and the 'x,y,z' % co-ordinates for the estimated elliptical surface points % corresponding to X,Y,Z (Z > 0 assumed). % % Also returns Xe,Ye,Ze - the matrix values for an ellipsoid % of dimensions r(x,y,z). The size of Xe,Ye,Ze depends on % 'gridSize' (default 50). Note that x,y,z are a subset of % Xe,Ye,Ze. % % 'plot' is a boolean option for plotting of the input/fitted xyz % % $Revision: 1.1 $ $Date: 2009/04/28 22:13:54 $ % Licence: GNU GPL no implied or express warranties % History: 08/99 Chris Harvey % function needs to swap X,Y input for some reason?...
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.

Page1 / 3

elec_fit_ellipse - function[r,x,y,z,Xe,Ye,Ze =...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online