Distance Matrix calculation

A compact program for calculating the distances of a group of points, given as rows in a matrix.

You are now following this Submission

This program calculates the Euclidean distances of every possible pair of points, whose coordinates are given as rows in a matrix. It is particularly useful for distance-based classifiers, due to its limited computational cost. The program can be easily adapted to calculate Manhattan distance or any other distance metric.

Cite As

Zacharias Voulgaris (2026). Distance Matrix calculation (https://se.mathworks.com/matlabcentral/fileexchange/26434-distance-matrix-calculation), MATLAB Central File Exchange. Retrieved .

Categories

Find more on Statistics and Machine Learning Toolbox in Help Center and MATLAB Answers

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.0.0