how to write matlab code for this equation?

1 Ansicht (letzte 30 Tage)
VISHALI V
VISHALI V am 26 Feb. 2018
Kommentiert: VISHALI V am 9 Mär. 2018
sa=0;
for a=1:K
sa=sa+log2(1+r(a)/U);
end
display(sa)
as = 1*10^-10;
bs= 1*10^-5;
rs = (bs-as).*rand(K,1) + as;
pow=0;
for d=1:K
pow=pow+((Ptot(d)/U)+rs(d));
end
display(pow)
ptc=1*10^-3;
par=pow+ptc
nreee=sa/par
  6 Kommentare
Walter Roberson
Walter Roberson am 8 Mär. 2018
You are using a discrete domain of pk. To find the pk that maximizes the equation, try them all, and use the two-output form of max() to identify the index that returns the largest value.
VISHALI V
VISHALI V am 9 Mär. 2018
thank you sir

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Kategorien

Mehr zu Wireless Communications finden Sie in Help Center und File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by