euclidean

Computes the 3D distance between two xyz point sets represented by two matching nx3 arrays p and c.
253 Downloads
Updated 5 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 Seers (2024). 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!
Version Published Release Notes
1.0.0.0