Sigma notation - two variables. 'for' loop or symsum?
Mostra commenti meno recenti
Hello
I am trying to compute a sigma summation of a simple single column vector x, where:
N = length(x)
k = 0:N/4
i = 1:N-k
I need to solve for Axx(k):

I have tried to solve this using 'for' loops and symsum function, without success. Help is hugely appreciated, thanks.
Risposta accettata
Più risposte (1)
Roger Stafford
il 21 Ott 2014
Axx = x.'*hankel(x,zeros(1,N/4+1));
2 Commenti
Nate
il 22 Ott 2014
Roger Stafford
il 22 Ott 2014
That's probably because your value N is not a multiple of 4. Do this:
round(N/4)+1
instead.
Categorie
Scopri di più su Correlation and Convolution in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!