elec_distance - function [labels, distances] =

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

View Full Document Right Arrow Icon
function [labels, distances] = elec_distance(elec_labels,X,Y,Z,xo,yo,zo) % elec_distance - Calculates spherical interelectrode distances (arc length). % % Usage: [labels, distances] = elec_distance(elec_labels,X,Y,Z,xo,yo,zo) % % Notes: Arc length method assumes a centroid at (xo,yo,zo) = (0,0,0) % and input values are in rectangular Cartesian coordinates. % % Sphere radius is estimated by the average radius from % (xo,yo,zo) to any 2 pairs of electrodes. It will vary % from one pair to another, but this method works well for % small theta (eg, nearest neighbours). % % Returns 2 matrices, one for paired electrode labels and % another for spherical arc length estimates. % % $Revision: 1.1 $ $Date: 2009/04/28 22:13:54 $ % Author: Darren.Weber_at_radiology.ucsf.edu % Created: 18/05/00 - linear distance % Modified: 24/06/01 - spherical arc length (should be OK for small theta % but for large theta, elliptical arc length may be % preferable). % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % initialise centroid, unless input parameters defined
Background image of page 1

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

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the 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 / 2

elec_distance - function [labels, distances] =

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