How to fsum on only one variable?
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
Hi, I want to find the following Z(i)s but inside the sum is only for j. How can I write following script with sum on only j? Sorry if my question is very basic stuff
for i=1:n
for j=1:m
Z(i)=Z(i)-sum(S(j).*Z(i-j))
end
end
0 Commenti
Risposta accettata
Più risposte (1)
Image Analyst
il 8 Lug 2013
I have no idea what you're trying to do. First of all, Z(1) will depend on Z(1) which hasn't been defined yet so that will bomb. Next, i-j will equal zero when both i and j are 1, so that will bomb also. Beyond that I have no idea whatsoever what you're trying to do. And what is S?
1 Commento
Vedere anche
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!