MATLAB: How to write matlab code for summation equation for the file attached. Pls help.

summation equation

Best Answer

P(i,k) = 0;
for j = 1 : N + M
if (j ~= i)
P(i,k) = P(i,k) + (1 - 2*B(i,j)*P(j,k) - B(i,o)) - b(i);
end
end
P(i,k) = lambda(k) * P(i,k) / 2 / (a(i) + lambda(k) * B(i,i))