MATLAB: How to take summation for square of modulus for the multiplication of two complex matrices for the below equation

wireless communication

n=log10(-17);
N0=10^n
c=(gnew*vk)
d=abs(c)
e=d^2
pk=1500
f=e*pk
B=120000
sk=symsum(f)+BN0

Best Answer

k=5;
p=sym('p',[5 1]);
g=sym('g',[5 1]);
v=sym('v',[5 1]);
syms B N0 t
gama=(p.*abs(g.*v).^2)./(symsum(p.*abs(g.*v).^2,t,1,k)+B*N0)