×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

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

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

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

(OP)
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

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

Hi,
Use xcorr (Signal processing toolbox). Read the help (or doc).

Joe
The new BSTeX- Equation viewer for Matlab7
http://www.geocities.com/bstex2001

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

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

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

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.

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

(OP)
That's right.  I would like to use least squares estimation to determine the approximate source location.  Please excuse my vague post.

Danny

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

(OP)
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.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources