euclideandistance
It computes Euclidean distance between two vectors or matrices of same length. If one of the inputs has one row and the other has 'm' rows, then distance is computed between one row and every other row. The more the distance is, the less similar the data points are.
Attention: Available only with Twin Activate commercial edition.
Syntax
Distance = euclideandistance(X,Y)
Inputs
- X
- First input vector or matrix.
- Y
- Second input vector or matrix.
Outputs
- Distance
- The distance between two inputs.
Example
Example of euclideandistance
x = [1, 2, 3];
y = [4, 5, 6];
distance = euclideandistance(x, y);
> distance
distance = 5.19615242