<< NL_F_DiscCenter NL_F: Function NL_F_DistanceSiDj >>

NARVAL >> NL_F: Function > NL_F_DistanceNiNj

NL_F_DistanceNiNj

Perform the Euclidian distance between two nodes.

Calling Sequence

[D] = NL_F_DistanceNiNj(Ni,Nj,Nx,Ny)

Arguments

:

Node.

:

Node.

:

Vector x-coordinates.

:

Vector y-coordinates.

D

Euclidian distance.

Description

NL_F_DistanceNiNj performs the Euclidian distance between the two nodes and . The nodes' coordinates are assumed to be stored inside the vectors and .

Examples

Nx=[100 200 300];
Ny=[200 400 600];
Ni=1;
Nj=2;
[D]=NL_F_DistanceNiNj(Ni,Nj,Nx,Ny)//application of NL_F_DistanceNiNj

Report an issue
<< NL_F_DiscCenter NL_F: Function NL_F_DistanceSiDj >>