how to calculate the throughput for the expression

1 次查看(过去 30 天)
clear all;
clc;
B=100;
C=[0 0 41 4 0;
45 12 0 0 15;
6 43 0 0 10;
0 0 23 42 0;
26 27 0 0 44]
p=1:5
a=sort(p)
p(1)=1;P(2)=2;P(3)=3;P(4)=4;P(5)=5;
throughput=B*log2(1+((p(i)*gamma(i))/(sum(p(1:i-1).*gamma(i)))))
For the above mentioned code P(1)=1 indicates first row P(2)=2 indicates second row and so on till p(5)=5 indicates fifth row. gamma indicates the numbers(41,4,45,12,....26,27,44) present in the C matrix. From C i want to calculate the throughput with respect to rows and columns under the condition such that the rows and columns contain number in the same place.

回答(0 个)

类别

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

标签

Community Treasure Hunt

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

Start Hunting!

Translated by