how can i implement this equation in matlab where alpha 1 and alpha 2 are powers of user 1 and user 2 respectively?

1 vue (au cours des 30 derniers jours)
how can i implement this equation in MATLAB where alpha 1 and alpha 2 are powers of user 1 and user 2 respectively?

Réponse acceptée

Birdman
Birdman le 2 Nov 2017
syms ro h2 h1 alfa2 alfa1 B
ro=subs(ro,4);h2=subs(h2,3);h1=subs(h1,5);B=subs(B,1);alfa1=subs(alfa1,9);alfa2=subs(alfa2,8);%random numerical values
C2=vpa(B*log2(1+min((alfa2*ro*abs(h2)^2)/(1+ro*alfa1*abs(h2)^2),(ro*alfa2*abs(h1)^2)/(1+ro*alfa1*abs(h1)^2))))
  4 commentaires
Birdman
Birdman le 3 Nov 2017
In the while loop, you forgot to mention the index of rho vector. It will be
rho(aa)
usman ali
usman ali le 5 Nov 2017
Modifié(e) : usman ali le 5 Nov 2017
Thank you so much, Sir. now it's working.

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur MATLAB dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by