Info

この質問は閉じられています。 編集または回答するには再度開いてください。

grouping the users thereby sharing the subcarriers

1 回表示 (過去 30 日間)
Prabha Kumaresan
Prabha Kumaresan 2017 年 12 月 14 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
Nuser=4;
Nsubcarrier=10;
G is a matrix of (users,subcarriers)%image attached below
C is subcarrier allocation to users %image attached below
could anyone tell me how to group the users as a result sharing of subcarriers takes place.
  3 件のコメント
Prabha Kumaresan
Prabha Kumaresan 2017 年 12 月 15 日
編集済み: Walter Roberson 2017 年 12 月 15 日
As a result of grouping the subcarriers can be shared among the users which results in the improvement of throughput performance.
Walter Roberson
Walter Roberson 2017 年 12 月 15 日
That description of grouping tells us nothing about how it needs to be implemented.

回答 (1 件)

Walter Roberson
Walter Roberson 2017 年 12 月 14 日
which_user = randi(Nuser, 1, Nsubcarrier);
newC = 0 * C;
idx = ((1:Nsubcarrier)-1) * Nuser + which_user;
newC(idx) = C(idx);
  4 件のコメント
Prabha Kumaresan
Prabha Kumaresan 2017 年 12 月 15 日
編集済み: Walter Roberson 2017 年 12 月 18 日
before grouping if C was
[ 1 0 2 0 0 0 0 0;0 0 0 3 4 0 0 0;0 5 0 0 0 0 0 6;0 0 0 0 0 7 8 0]
after grouping C should be
[1 0 2 3 4 0 0 0;1 0 2 3 4 0 0 0;0 5 0 0 0 0 7 8 6;0 5 0 0 0 0 7 8 6]
Which means C is a matrix of [4*8]
4 users sharing 2 different subcarriers each.
Prabha Kumaresan
Prabha Kumaresan 2017 年 12 月 18 日
編集済み: Walter Roberson 2017 年 12 月 18 日
If G =
0.0070 0.0103 0.0066 0.0033 0.0041 0.0027 0.0004 0.0050 0.0040 0.0046;
0.0020 0.0016 0.0001 0.0018 0.0019 0.0008 0.0024 0.0036 0.0047 0.0044;
0.0015 0.0011 0.0009 0.0011 0.0011 0.0022 0.0019 0.0018 0.0013 0.0028;
0.0061 0.0033 0.0022 0.0037 0.0038 0.0011 0.0017 0.0029 0.0029 0.0019;
and C=
0 0 0.0066 0 0 0 0 0 0 0;
0.0020 0.0016 0 0.0018 0 0 0 0 0 0;
0 0 0 0 0 0 0.0019 0 0 0;
0 0 0 0 0.0038 0.0011 0 0.0029 0.0029 0.0019;
Now I want to group the users with respect to subcarriers. Suppose if I group user 1 with user 2 and user 3 with user 4 the corresponding subcarrier need to get shared which results in D=
0.0020 0.0016 0.0066 0.0018 0 0 0 0 0 0;
0.0020 0.0016 0.0066 0.0018 0 0 0 0 0 0;
0 0 0 0 0.0038 0.0011 0.0019 0.0029 0.0029 0.0019;
0 0 0 0 0.0038 0.0011 0.0019 0.0029 0.0029 0.0019;

この質問は閉じられています。

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by