{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

elec_fit_sphere_optim

# elec_fit_sphere_optim - with center(Xo,Yo,Zo and radius r...

This preview shows page 1. Sign up to view the full content.

function [f] = elec_fit_sphere_optim(r, X, Y, Z, xo, yo, zo) % elec_fit_sphere_optim - Optimization for elec_fit_sphere.m % % Called from elec_fit_sphere.m % % \$Revision: 1.1 \$ \$Date: 2009/04/28 22:13:55 \$ % Licence: GNU GPL, no implied or express warranties % History: 02/2002, Darren.Weber_at_radiology.ucsf.edu % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: % with center (Xo,Yo,Zo) and radius r, the equation of a sphere is: % % r^2 = (x-xo)^2 + (y-yo)^2 + (z-zo)^2 % % This function below creates a scalar value to % return to the fminsearch function in elec_fit_sphere. S = (X-xo).^2 + (Y-yo).^2 + (Z-zo).^2 - r^2; f = sum( S.^2 );...
View Full Document

{[ snackBarMessage ]}

Ask a homework question - tutors are online