I am trying to solve the following simple problem in matlab:

I am trying to do this by using for loops. However, I havent quite figured it out.
This is what I have come up with so far:
n = [0:1:10];
b = 2*n;
c = 0.5*n;
B=0;
for ii = 1:length(b)
for jj = 1:length(c)
B(ii) = B+sum(b(jj)*c(ii-jj))
end
end
It seems like I come into a problem when ii=jj and I have c(0), and this index cannot be used. How can I fix this?