Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7689751
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T20:14:14+00:00 2026-05-31T20:14:14+00:00

According to the documentation, there is no convenient ‘same’ option for the xcorr command

  • 0

According to the documentation, there is no convenient 'same' option for the xcorr command like there is for conv to keep the output the same size as one of the inputs.

Is there a way to get around this problem besides calculating the appropriate indices and talking a subarray?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T20:14:16+00:00Added an answer on May 31, 2026 at 8:14 pm

    You’re right, there’s no such thing for xcorr, and the problem is that even if you specify MAXLAG you will get a vector of length 2*MAXLAG+1, so it’s always going to be odd. If your input signal is odd, you can call xcorr( a,b, (length(a)-1)/2 );. If you’re delaing with even or arbitrary lengths, I’m afraid you’ll have to use subarray calculations.`However, to be clever you can use a similar trick, and simply say

    R = xcorr( a,b, floor(length(a)/2) );
    R = R( 1:length(a) );
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

According to ADC documentation: You can access Open Firmware this by holding down Command-Option-O-F
According to the documentation : There is no way to block signals temporarily from
According to the documentation JAXB factory methods do not have arguments. Is there a
Here's the information according to the official documentation : There are four different pairs
According to the documentation, they're pretty much interchangeable. Is there a stylistic reason to
According to the documentation, http://www.computerhope.com/unix/uuniq.htm The command can be used to ignore the first
According to this documentation, http://jqueryui.com/demos/datepicker/#option-altFormat I can set a different date format for the
According to the ClearCase UCM documentation there are follwoing roles for UCM users: administrator
According to this answer or the android's documentation there is several ways to get
According to Java documentation, the read() method returns: -1 if there is no more

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.