Borrar filtros
Borrar filtros

xcorr - per matrix column

3 visualizaciones (últimos 30 días)
omri r
omri r el 20 de Jun. de 2017
Comentada: KSSV el 20 de Jun. de 2017
Hi,
I'm trying to achieve something with xcorr and cannot succeed.
Would appreciate any help.
I have quite a big matrix (700,1500).
I would like to get the autocorrelation per matrix column. I tried to use the xcorr, but it gives me the x-correlation also to other columns.
How would I autocorrelation per matrix column?
  1 comentario
omri r
omri r el 20 de Jun. de 2017
without a for loop

Iniciar sesión para comentar.

Respuestas (1)

KSSV
KSSV el 20 de Jun. de 2017
A = rand(700,1500) ;
C = zeros([],[]) ;
for i = 1:size(A,1)
C(:,i) = xcorr(A(:,i)) ;
end
  2 comentarios
omri r
omri r el 20 de Jun. de 2017
Thanks, I meant without a for loop. It would take to much time.
KSSV
KSSV el 20 de Jun. de 2017
Have you tried that? That dimension matrix not taking much time.

Iniciar sesión para comentar.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by