how to calculate the throughput for the expression

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.

Answers (0)

Categories

Find more on MATLAB in Help Center and File Exchange

Tags

Asked:

on 3 Jan 2018

Community Treasure Hunt

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

Start Hunting!