I am trying to use for loops to calculate the following formula:

However, since the number of elements for 't' and 'tau' are different, I'm not sure how to properly index the code.
This is what I have done so far:
t = [0:0.1:15];
tau = [0:2:10];
dtau = tau(2)-tau(1);
BB = 4*tau;
u = 2*t;
B = zeros(1,length(t));
for ii = 1:length(t)
for jj = 1:length(tau)
B(ii) = B(ii) + BB(jj)*u(ii-jj+1)*dtau;
end
end
To elaborate a bit more - the upper integration limit is the 't' in this case, so for every B(t) I would like to integrate from tau(0) to tau=t. Any suggestions? Thank you.
conv(BB,u)? - Dan