Path: news.mathworks.com!not-for-mail
From: "Mazahir " <maz_p5@hotmail.com>
Newsgroups: comp.soft-sys.matlab
Subject: Solving equations
Date: Mon, 18 Aug 2008 13:47:01 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 17
Message-ID: <g8bugl$e7c$1@fred.mathworks.com>
Reply-To: "Mazahir " <maz_p5@hotmail.com>
NNTP-Posting-Host: webapp-03-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1219067221 14572 172.30.248.38 (18 Aug 2008 13:47:01 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Mon, 18 Aug 2008 13:47:01 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1421566
Xref: news.mathworks.com comp.soft-sys.matlab:486031



Hello,

I am finding out the location of a sound source using
microphones. The co-ordinates of the 3 mics are fixed.
Suppose  the co-ordinates of the 3 mics are (x1,y1),(x2,y2)
and (x3,y3) and the distance of source of sound from the 1st
mic to the 2nnd is - del12 and the source of sound from the
1st mic to the 3rd is del13. how do i find the location of
the source (x,y) in MATLAB using the following formula.

del12=sqrt((x1-x)^2+(y1-y)^2)- sqrt((x2-x)^2+(y2-y)^2)
del13=sqrt((x1-x)^2+(y1-y)^2)- sqrt((x3-x)^2+(y3-y)^2)

Solving this equation of 2 unknowns simultaneously will give
me the point (x,y). But i do not know how to do it in
matlab. I think there is a solution using matrices. Please
help. thank you.