elec_distance_testscript

elec_distance_testscript - dist = sqrt ( xd^2 + yd^2 + zd^2...

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

View Full Document Right Arrow Icon
% elec_distance_testscript - test electrode distance calculations elec_labels = cellstr(['a' 'b']'); x = [ 2 -2]'; y = [ 3 2]'; z = [ 2 0]'; xd = x(1) - x(2); yd = y(1) - y(2); zd = z(1) - z(2);
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: dist = sqrt ( xd^2 + yd^2 + zd^2 ); fprintf('Cartesian distance = %6.4f\n', dist); [labels, dist] = elec_distance(elec_labels,x,y,z); fprintf('Spherical arc length = %6.4f\n', dist(2,1));...
View Full Document

Ask a homework question - tutors are online