This is a Matlab code suite for sensor network localization and graph realization in 2D.
You need SDP solver SEDUMI to run them.
**************************************************************************************************
These codes take a point set and generate a unit-disk graph with noises and first m points of PP
as anchors, and localize the rest of points:
[PP,dd,m,r,nf, Xiter] = ESDP(PP,m,n,r,nf,degree)
or
[PP,dd,m,r,nf, Xiter] = ESDPDual(PP,m,n,r,nf,degree)
Test SDP-based Sensor Localization System
Input
PP: 2xn matrix representing all point on 2D
n : the number of total points
m : the number of anchor points; the first m columns of PP
r : the radio range
nf: noisy factor
degree: the limit on the number of edges connected to any sensor point, typically set it to 5-10
Output
PP: 2xn matrix representing all point on 2D, the last m columns are anchors
dd: the uppertriangle distance matrix from PP(:i) to PP(:,j), i