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
0 个评论
采纳的回答
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
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
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
2020-11-28
A particle moves with position function
s=t^4−4t^3−20t^3+20t,t≥0
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
2020-11-28
This is not an Answer to jaah navi's question. You should create your own Question. But first read Ask
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Calculus 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!