writing equation in matlab

1 次查看(过去 30 天)
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

采纳的回答

Walter Roberson
Walter Roberson 2017-12-29
编辑:Walter Roberson 2017-12-29
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 个评论
jaah navi
jaah navi 2018-1-17
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 2018-1-17
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

请先登录,再进行评论。

更多回答(1 个)

Kristopher Yaryan
Kristopher Yaryan 2020-11-28
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 个评论
Walter Roberson
Walter Roberson 2020-11-28
This is not an Answer to jaah navi's question. You should create your own Question. But first read Ask

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Calculus 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by