pdist_oneLine

One-line implementation of both MATLAB's pdist and pdist2 functions.
4 Downloads
Updated 12 Oct 2023

View License

My one-line implementation of both MATLAB's pdist and pdist2 functions which compute the univariate (pdist) or bivariate (pdist2) Euclidean distances between all pairs of input observations. This function can do both - it will function like pdist if only one set of observations is provided and will function like pdist2 if two sets of obsrvations are provided. Additional input arguments are NOT supported such as alternative distance metrics.
GitHub: https://github.com/andrewsoltisz/pdist-one-line/tree/main

Cite As

Andrew M. Soltisz (2024). pdist_oneLine (https://www.mathworks.com/matlabcentral/fileexchange/136559-pdist_oneline), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2023b
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.2

added GitHub link to the description.

1.0.1

added mathworks file exchange link to the source code

1.0.0