we got the sum function to work by doing this:
for L = (1:200); %for Ligand concentration from 1 to 200 micro-Molar
A = (L).^k / prod(Kd); %part of equation for Q
f = (factorial (k)/(factorial (k-i)*factorial (i)))/(prod(Kd*j)); % portion of equation for B
sum = sum + f; % sum equals sum plus f to be part of equation B
B = A + Kd(k) * (1 + sum); %portion of equation for Q
Q(L) = A/B; %A over B equals Bound receptor-ligands over Total Receptors
end %end loop
can anyone tell me if this is the correct way to do it?