# distmat (Scripts) 1.0

Average Rating
User Rating:
Visitors Rating:
My rating:

• Last update: 6 years ago
• Price: Free |
• Operating system: Linux, Mac OS X, Win All, BSD, Solaris
• Publisher: Mike Sheppard (29 other programs)
See full specifications

## distmat (Scripts) Publisher's description

### D = DISTMAT(X,Y) for matrices X and Y returns the distance matrix where the (i,j)th entry is the d-norm distance between the ith and jth row of X and Y respectively.

D = DISTMAT(X,Y) for matrices X and Y returns the distance matrix where the (i,j)th entry is the d-norm distance between the ith and jth row of X and Y respectively.

DISTMAT(X,Y,d) computes a specific d-norm distance. Default=2

[D,XI,YI]=DISTMAT(X,Y,d,var) gives the indices of the sorted values of matrix D depending on var ('ascend' or 'descend') in relation to both X and Y.

EXAMPLE:
X=[5 1; 8 1; 1 9];
Y=[7 1; 1 1];

[D,XI,YI]=DISTMAT(X,Y)

D=[2 4; 1 7; 10 8]
XI=[1 2; 1 2; 2 1]
YI=[2 1 3; 1 2 3]

The distance between X(3,:)=[1 9] and Y(2,:)=[1 1] is D(3,2)=8
Starting with Y(1,:) from smallest to largest distance away is X([2 1 3],:)

#### System Requirements:

MATLAB 7.7 (R2008b)
Program Release Status: New Release
Program Install Support: Install and Uninstall

#### distmat (Scripts) Tags:

Click on a tag to find related softwares

## Most Popular

ASK, OOK, FSK, BPSK, QPSK, 8PSK modulation 1.1
ASK, OOK, FSK, BPSK, QPSK, 8PSK modulation contain several functions for digital modulation simulation
Simulink Communication Labs 1.1
Simulink Communication Labs allows you to learn communication systems in greater depth.
M-QAM modulation and demodulation 1.1
M-QAM modulation and demodulation is the QAM modulation and demodulation tech.
LZW Compression/Decompression 1.1
LZW Compression/Decompression - Updated LZW compressor and decompressor with reasonable performance
InSPIRE utility to plot a 2D displacement field (Scripts) 1.0
This program plots the deformation field (displace vectors) contained in vector.txt.