cross corrolation vector error

조회 수: 1 (최근 30일)
Lilya
Lilya 2016년 3월 5일
댓글: Lilya 2016년 3월 6일
hi all, I have 2 matrices x [5 365], y [1 365]. when I use the command crosscorr to determine the lag this error is appear
Error using crosscorr (line 83)
First series must be a vector.
what should I do?
thank you for help.

답변 (1개)

the cyclist
the cyclist 2016년 3월 5일
The documentation for crosscorr indicates that the inputs need to be vectors, not matrices.
You don't say exactly what cross correlations you need to calculate, but you may need to use a for-loop calculate what you need for the columns of x?
  댓글 수: 1
Lilya
Lilya 2016년 3월 6일
hi cyclist, Actually, I need it to determine the max lag from the plot

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Correlation and Convolution에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by