random points on a grid
10 次查看(过去 30 天)
显示 更早的评论
Can someone say how to do this? What I am trying to do:
-Generate 200*200 grid
-populate the grid with 2 different agents
-The percentage of the grid that each different agent is populated with is set(e.g. if 10%, than there would be 20 of each different agent in the grid)
-Each cell of the grid can only be occupied by one thing.
I want to essentially generate a number of random 2D coordinates
1 个评论
Kevin Chng
2018-10-8
coordinate = rand(200,200);
Sorry that i'm not very understand on some parts of your question, may be others may help you.
回答(1 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Random Number Generation 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!