{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

elec_ellipse_fit

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

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

function [r,x,y,z,Xe,Ye,Ze] = elec_ellipse_fit(X,Y,Z,xo,yo,zo,gridSize,plot) % elec_ellipse_fit - Find radii of ellipse and elliptical points for XYZ % % Usage: [r,x,y,z,Xe,Ye,Ze] = elec_ellipse_fit(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?

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

View Full Document
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

Page1 / 3

elec_ellipse_fit - 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
Ask a homework question - tutors are online