cross corrolation vector error

8 vues (au cours des 30 derniers jours)
Lilya
Lilya le 5 Mar 2016
Commenté : Lilya le 6 Mar 2016
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.

Réponses (1)

the cyclist
the cyclist le 5 Mar 2016
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 commentaire
Lilya
Lilya le 6 Mar 2016
hi cyclist, Actually, I need it to determine the max lag from the plot

Connectez-vous pour commenter.

Catégories

En savoir plus sur Dimensionality Reduction and Feature Extraction dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by