Distribute randomly robots in the workspace
조회 수: 2 (최근 30일)
이전 댓글 표시
I have a set of robots N. The workspace where robots operate is divided on compartments. How to distribute robots uniformly between compartments.
For example,
If I have 16 robots and 4 compartments, than after distribution every compartment will have 4 robots.
If I have 17 robots and 4 compartments, than after distribution 3 random compartments will contain 4 robots and 1 compartment will contain 5 robots.
댓글 수: 0
답변 (2개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Robotics에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!