elec_distance_bad

Elec_distance_bad - function elec_distance_bad(filename elec_distance_bad identify electrodes that were poorly digitised This utility is designed

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

View Full Document Right Arrow Icon
function elec_distance_bad(filename) % elec_distance_bad - identify electrodes that were poorly digitised % % This utility is designed to identify electrodes that were % poorly digitised by the Polhemus digitiser. It calculates % interelectrode distances and identifies electrodes with % excessive distance (Mean +/- [2 * StDev]). % % The script creates output to text data files of nearest % neighbour distances (*.nn) and outliers in both nearest % neighbour distances and consecutive distances (*.bad). % % $Revision: 1.1 $ $Date: 2009/04/28 22:13:54 $ % Licence: GNU GPL, no implied or express warranties % History: 05/2000, Darren.Weber_at_radiology.ucsf.edu % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% if ~exist('filename','var') filename = 'eeg_example_data/elec_124_cart.txt'; end % Read electrode data, using utility 'elec_load' [elec,type,X,Y,Z] = elec_load(filename); % Find index values for electrodes, excluding PAN and centroid/ref electrodes = ones(size(type)) * 69; Index = find(type == electrodes); Ei = elec(Index); Xi = X(Index); Yi = Y(Index); Zi = Z(Index); % plot electrode position grid elec_meshplot(Xi,Yi,Zi); view(2); % top view % view(-90, 0); % left side view % view( 90, 0); % right side view % view(-180,0); % front view % view( 0,0); % back view % return; %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Calculate inter-electrode distances [dist_e, dist_d] = elec_distance(Ei,Xi,Yi,Zi);
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 / 5

Elec_distance_bad - function elec_distance_bad(filename elec_distance_bad identify electrodes that were poorly digitised This utility is designed

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