image thumbnail

euclidean

version 1.0.0.0 (1.42 KB) by Thomas
Computes the 3D distance between two xyz point sets represented by two matching nx3 arrays p and c.

251 Downloads

Updated 05 Aug 2013

View License

INPUT: two matching nx3 arrays p and c representing xyz coordinates of 3D points:

E.g. p = [1 1 1; 1 1 1; 1 1 1]
c = [2 2 2; 2 2 2; 2 2 2]

OUTPUT: Single column vector euclid3D with each row being the 3D distance between each position vector in p and c

E.g. euclid3D=[1.7321; 1.7321; 1.7321]

USAGE: [euclid3D] = euclidean(p, c)

Cite As

Thomas (2021). euclidean (https://www.mathworks.com/matlabcentral/fileexchange/42945-euclidean), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2012b
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!