Hello,
n=40; b=1; m=6; s=0.15for k=1:(n-(2*b)-m+1)c=L(k+1:k+m-1); if sum(abs(c-L(k)))<=2*s %How can I use a loop instead of this sum
lam_d=(1/m)*sum(L(k:k+m-1)); break end end
I have problem with line starting with sum, can anybody tell me how can I use a loop instead of sum?
Thank you
Best Answer