writing equation in matlab

12 visualizaciones (últimos 30 días)
Prabha Kumaresan
Prabha Kumaresan el 29 de Dic. de 2017
Comentada: Walter Roberson el 28 de Nov. de 2020
How to write the equation of image in matlab.
The parameters of the image are i->number of users; gamma is the normalized channel gain

Respuesta aceptada

Walter Roberson
Walter Roberson el 29 de Dic. de 2017
Editada: Walter Roberson el 29 de Dic. de 2017
r = @(i) omega * beta * log2(1 + P(i)*gamma(i) / sum( P(1:i-1) .* gamma(i) + omega) )
It is not entirely clear to me whether the omega is included in the summation term or not.
  7 comentarios
jaah navi
jaah navi el 17 de En. de 2018
Ok. I have used that command in my code
P=sort(B)
G=sort(A,'descend')
for i =1:size(P,1)
r = @(i) Bmax*log2(1+(P(i).*G(i))/((sum(P(1:i-1)).*G(i))+noise))
end
If I run the code I am getting
r =
@(i)Bmax*log2(1+(P(i).*G(i))/((sum(P(1:i-1)).*G(i))+noise))
r =
@(i)Bmax*log2(1+(P(i).*G(i))/((sum(P(1:i-1)).*G(i))+noise))
r =
@(i)Bmax*log2(1+(P(i).*G(i))/((sum(P(1:i-1)).*G(i))+noise))
Could you please tell me how can the values of P and G matrix can be substituted in r.
Walter Roberson
Walter Roberson el 17 de En. de 2018
P=sort(B)
G=sort(A,'descend')
for i =1:size(P,1)
r(i) = Bmax*log2(1+(P(i).*G(i))/((sum(P(1:i-1)).*G(i))+noise))
end

Iniciar sesión para comentar.

Más respuestas (1)

Kristopher Yaryan
Kristopher Yaryan el 28 de Nov. de 2020
A particle moves with position function
s=t^44t^320t^3+20t,t0
a) At what time does the particle ha a velocity of 20 m/s?
b) At what time is the acceleration 0? What is the significance of this value t?
  1 comentario
Walter Roberson
Walter Roberson el 28 de Nov. de 2020
This is not an Answer to jaah navi's question. You should create your own Question. But first read Ask

Iniciar sesión para comentar.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by