how to obtain system throughput with power graph
1 次查看(过去 30 天)
显示 更早的评论
this is the graph ![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/285736/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/285736/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/285737/image.png)
this is the equation
and the code i have tried so far
tow=.34
Pa=5:5:15
Ps=10
Pi=[0.3,1,1.6]
N=3
gs=[1.5,2.5,3.5]
yi=[1,2,4]
Pt=((tow*Pa)./(1-tow))
n1=(Pt-sum(Pi(2:N)))*yi(1)
d1=(Ps*gs)+sum(Pi(2:N).*yi(2:N))
a=log2(1+(n1./d1))
res=0
for i=2:N
n2=Pi(i)*yi(i)
d2=Ps*gs+sum(Pi(3:N)*yi(3:N))
fin=log2(1+(n2./d2))
res=res+fin
end
rsum=a+res
plot(Pa,rsum)
hold on
How can I find the way to obtain the graph?
0 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Graph and Network Algorithms 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!