elec_distance_nn

# elec_distance_nn - % History: 05/2000,...

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

function [NN_e, NN_d] = elec_distance_nn(dist_e, dist_d) % elec_distance_nn - Identify distance between nearest neighbour electrodes. % % Requires input data generated by 'elec_distance.m' % % Usage: [NN_e, NN_d] = elec_distance_nn(dist_e, dist_d) % % utility and NN_e and NN_d are matrices that contain % nearest neighbour electrode labels and distances, % respectively. % % \$Revision: 1.1 \$ \$Date: 2009/04/28 22:13:54 \$ % Licence: GNU GPL, no implied or express warranties
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: % History: 05/2000, Darren.Weber_at_radiology.ucsf.edu % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% fprintf('\n%s\n\n', 'Calculating nearest neighbour electrode distances.'); NN_e = cell(0); NN_d = ; for r = 1:length(dist_d(:,1)) % Sort row r of dist_d in ascending order [NN_d(end + 1,:), index] = sort(dist_d(r,:)); % Sort electrode labels in same order NN_e(end + 1,:) = dist_e(r,index); end...
View Full 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.

Ask a homework question - tutors are online