Member of the spectral analysis class.
c = xcorr2(a)
c = xcorr2(a, b)
Computes the two-dimensional cross-correlation of the inputs. xcorr2(a) is equivalent to xcorr2(a, a), which computes the autocorrelation of a.
| Name | Description |
| a | Specifies a matrix. |
| b | Specifies a matrix. |
| Name | Description |
| c | Returns the cross-correlation of a and b. |
A = [1 2; 3 4];
B = [5 6 7; 8 9 10];
C = xcorr2(A, B)