Euclidean distance between two point clouds
Version 1.0.0.0 (542 Bytes) by
Audrey Cheong
Given point cloud A and B, get the euclidean distance of every point in B to the nearest point in A.
% Calculate the euclidean distance for every point in sample point cloud to
% the closest point in the reference point cloud (number of columns must
% match)
% INPUT:
% reference = M x N matrix
% sample = P x N matrix
% OUTPUT:
% distMat = P x N matrix
Cite As
Audrey Cheong (2025). Euclidean distance between two point clouds (https://www.mathworks.com/matlabcentral/fileexchange/59377-euclidean-distance-between-two-point-clouds), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2016a
Compatible with any release
Platform Compatibility
Windows macOS LinuxCategories
Find more on Point Cloud Processing in Help Center and MATLAB Answers
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
Version | Published | Release Notes | |
---|---|---|---|
1.0.0.0 |