Hi all
I am using the XCORR function in MATLAB to compute cross correlation between two arrays ( vectors).
however, I am getting the following error. Wht do I do.
??? Error using ==> xcorr
Maximum lag must be an integer.
What does Max lag signify? I tried using MATLAB help but was not successfull
thanks
abhi
XCORR(...,MAXLAG) computes the (auto/cross) correlation over the
range of lags: -MAXLAG to MAXLAG, i.e., 2*MAXLAG+1 lags.
If missing, default is MAXLAG = M-1.
Probably you are getting this message because the second argument is a scalar.
Regards