cross corrolation vector error

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

0 个投票

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 个评论

hi cyclist, Actually, I need it to determine the max lag from the plot

请先登录,再进行评论。

类别

帮助中心File Exchange 中查找有关 Dimensionality Reduction and Feature Extraction 的更多信息

提问:

2016-3-5

评论:

2016-3-6

Community Treasure Hunt

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

Start Hunting!

Translated by