Info

此问题已关闭。 请重新打开它进行编辑或回答。

could anyone help me how to fix this issue.

1 次查看(过去 30 天)
If there are 10 users (say user1,user2 and goes on till user10) present how to group the users under the following conditions ->2 users should be present in each group. ->users present in one group should not be present in other group. and the possible number of combinations they can form.
  7 个评论
Guillaume
Guillaume 2018-3-20
编辑:Guillaume 2018-3-20
"This was the code i need to fix it"
That doesn't like code that even attempt at doing what is being ask. The fix here is to start from scratch.
The whole purpose of this sort of homework exercice is to teach you how to design an algorithm that solve a particular problem. Going through the thought process required to solve the problem is the most important part of that task. If we give you the algorithm, then you will not have learnt that process. That would be a great disservice to you.
Once you have figured out the algorithm coding it is only a 5 minutes job.
Rik
Rik 2018-3-20
@Guillaume, I doubt this is a homework question. Prabha Kumaresan has posted an impressive number of questions about code very similar to this already.

回答(0 个)

此问题已关闭。

标签

Community Treasure Hunt

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

Start Hunting!

Translated by