elec_load_testscript

elec_load_testscript - % elec_load_testscript - test...

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

View Full Document Right Arrow Icon
% elec_load_testscript - test loading and display of electrode data files clear; shape = ''; shade = 'interp'; elecpath = 'D:\MyDocuments\emse_data\ptsd-pet\source modelling\c07\meshes\'; elecfile = 'c07_124fit.txt'; elecpath = ''; elecfile = 'elec_simul32.txt'; elec_type = 'cart'; %'sphere1'; % load electrode co-ordinates and create 3D interpolated surface file = strcat(elecpath,elecfile); [elec,type,X,Y,Z,th,phi,r] = elec_load(file,'cart'); index = find(type == 99); xo = X(index); yo = Y(index); zo = Z(index); [elec,type,X,Y,Z,th,phi,r] = elec_load(file,'cart',xo,yo,zo); % Select electrodes only index = find(type == 69); elec = elec(index); X = X(index); Y = Y(index); Z = Z(index); th = th(index); phi = phi(index); r = r(index); % Gradations within co-ordinates Xmin = floor(min(X)); Xmax = ceil(max(X)); Ymin = floor(min(Y)); Ymax = ceil(max(Y)); if abs(Xmin) < abs(Xmax) x = abs(Xmax); else x = abs(Xmin); end if abs(Ymin) < abs(Ymax) y = abs(Ymax); else y = abs(Ymin); end
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_load_testscript - % elec_load_testscript - test...

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