Code covered by the BSD License  

Highlights from
Distance Matrix calculation

2.0

2.0 | 1 rating Rate this file 14 Downloads (last 30 days) File Size: 1.26 KB File ID: #26434

Distance Matrix calculation

by Zacharias Voulgaris

 

20 Jan 2010

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

| Watch this File

File Information
Description

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.

MATLAB release MATLAB 7.6 (R2008a)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (2)
21 Jan 2010 Mo Chen

Please see
http://www.mathworks.com/matlabcentral/fileexchange/24599-pairwise-euclidean-distances
which is significantly faster than your function.

21 Jan 2010 Mo Chen

Please see
http://www.mathworks.com/matlabcentral/fileexchange/24599-pairwise-euclidean-distances
which is significantly faster than your function.

Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
distance calculation Zacharias Voulgaris 21 Jan 2010 09:59:41
euclidean distance Zacharias Voulgaris 21 Jan 2010 09:59:41

Contact us at files@mathworks.com