Correlation coding problem with loop
Afficher commentaires plus anciens
I have two different arrays, one is 5000x7 and the other is 5000x4, I need to calculate the correlation between these two arrays at a lag of 0 time steps to start. Then I need to calculate the correlation wtih lags of time steps equal to 2,4,6,8,...,48. Is there a way to do this using the corrcoef function with a for loop or otherwise? If possible I would like the results of the correlation table to have the 4 values across the top and the 7 values down the side of the table. If needed I can use just the correlation for the 5000x7 array (the 5000x4 table has selected variables from the 5000x7 array) and delete the extra colums afterwards, but I still need the code to include the lags mentioned above.
Réponses (0)
Catégories
En savoir plus sur Correlation and Convolution dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!