Multiply and shift ?
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
I would like to have a code that can generate the maltiplication for x after shifting them many time
x=[1 2 4 1 3 4 5 1 3]
I would like to have a loop that can generate the autocorrlation for x with itself.
to illustrate;
x*x
R(1)=sum([1 2 4 1 3 4 5 1 3]*[1 2 4 1 3 4 5 1 3])/Length(x)
R(2)=sum([ 2 4 1 3 4 5 1 3]*[1 2 4 1 3 4 5 1 ])/Length(x-1)
and so forth until the R(N) computed
0 comentarios
Respuestas (1)
Catalytic
el 29 de Mzo. de 2019
Editada: Catalytic
el 29 de Mzo. de 2019
R = ifftshift(xcorr(x,'unbiased'))
Ver también
Categorías
Más información sobre Loops and Conditional Statements en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!