Question
Position Estimation using 2D multilateration for non-intersecting distances I am trying to estimate the position of a point in Matlab. I have , access points
Position Estimation using 2D multilateration for non-intersecting distances
I am trying to estimate the position of a point in Matlab. I have , access points (AP) at known positions ? as well as the distances to the point from each AP. These distances all have a distance error. I know how to solve this using multilateration if the circles from the known nodes would intersect, but they don't.
The distances are computed from RSSI measurements (received signal strength indication) and might be weighted (larger weight if RSSI is high).
See code below. (Note that I'm not weighting the RSSI measurements.) I'm creating an error function, where xp and yp are the point's unknown coordinates. x and y are known coordinates of the APs. I want to sum all the errors and find the xp and yp that minimize the error function, but not sure how to do this in Matlab.
for n=1:N % N - number of APs d(n)=getDistance(rssi(n),tx,2); err=@(px,py) sqrt((x(n)-px).^2+(y(n)-py).^2)-d(n); end err=sum(err); % this doesn't work obviously x0 = [xp_true(k),yp_true(k)]; out= fminunc(err,x0); xp(k,sample)=out(1); yp(k,sample)=out(2);
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started