how to make function to calculate the Rate in case that the values of H are stored in vector

for example

function r = calculaterate(B_SC,p,CRNR)

for i=1:10

CRNR(1,i)

r = B_SC.*log2.*(1+(p.*CRNR(1,i))/(1+p.*CRNR(1,i)));

end

end

More Abdalrhman Abdallah's questions See All
Similar questions and discussions