{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

elec_distance_bad

elec_distance_bad - function elec_distance_bad(filename...

Info icon This 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; %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Image of page 1

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

View Full Document Right Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern