Learn R Programming

NMFN (version 2.0.1)

distance2: Euclidean Distance between two matrices

Description

Euclidean Distance between two matrices

Usage

distance2(x1, x2)

Arguments

x1

Matrix 1

x2

Matrix 2

Examples

Run this code
# NOT RUN {
X<-matrix(1:12,3,4)
Y<-matrix(5:16,3,4)
distance2(X,Y)

# }

Run the code above in your browser using DataLab