MATLAB Preliminaries
function [D] = distance(x1,y1,z1,x2,y2,z2);
% A function to compute the distance
% between two points in R3
%
D=sqrt((x1-x2)^2+(y1-y2)^2+(z1-z2)^2)
Previous slide
Next slide
Back to first slide
View graphic version