The Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Math Forum » Discussions » Software » comp.soft-sys.matlab

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: Find (small) template in large vector: xcorr?
Replies: 0  

Advanced Search

Back to Topic List Back to Topic List  
Peter Mairhofer

Posts: 41
Registered: 8/18/10
Find (small) template in large vector: xcorr?
Posted: Feb 6, 2014 10:02 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply


Simply, stupid question: I have a very small vector y and a very large
vector x.

I want the beginning offset in x where y is closest found (based on
correlation). If possible even circular.

I tried any combination with xcorr, cconv, ... I could possibly think
of. Issue: x = 1:20, y1=5:10, y2=6:11. No matter what I do, the lag for
y1 and y2 is always the SAME!


PS: So incredible, but I seem to be the first human on earth needing
this. After 2 hrs google, experimenting, ... no match!

Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.