Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations GregLocock on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

How can I use MATLAB to perform a least squares estimation?

Status
Not open for further replies.

oregonianish

Electrical
Mar 23, 2005
6
Specifically, I am working with six digitized audio signals input via an array of microphones in order to find the location of a speaker within a room based upon time delay of arrival. I have been pointed in the direction of using a cross-correlation function in order to determine phase differences between the signals arriving at each microphone. From there, I must determine the distance from each microphone to the audio source in order to pinpoint the source's coordinates, or at least an angle to which a camera must point to capture video of the source. Any help would be greatly appreciated.

Danny
 
Replies continue below

Recommended for you

I'm not sure how the thread title relates to your post, but you can simply use the matlab backslash operator "\" to perform least squares operations.

M

--
Dr Michael F Platten
 
He's probably going to get a least squares estimate of the source location.

Cheers

Greg Locock

Please see FAQ731-376 for tips on how to make the best use of Eng-Tips.
 
That's right. I would like to use least squares estimation to determine the approximate source location. Please excuse my vague post.

Danny
 
From the time delays I obtain using the "xcorr" fucntion I will find range differences for each pair of microphones. A range difference is found by multiplying the time delay by the speed of sound. The range difference represents the difference between the distance from the source to the first microphone of a pair and the distance from the source to the second microphone of the same pair. With the fifteen range differences, based upon fifteen possible pairs for six microphones, and the predefined locations of each of the microphones, I would like an algorithm to perform a least squares estimation of the location of the sound source.

I do not know how to proceed from the point of having obtained the range differences. Any help with the implementation of a least squares estimation would be greatly appreciated.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor