Info
此问题已关闭。 请重新打开它进行编辑或回答。
grouping the users thereby sharing the subcarriers
1 次查看(过去 30 天)
显示 更早的评论
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 个评论
Walter Roberson
2017-12-15
That description of grouping tells us nothing about how it needs to be implemented.
回答(1 个)
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 个评论
此问题已关闭。
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!