I should fill the area of a 400x100 square with random circles having random diameters between 20 and 1 (without overlap). Then, I need the output file of the generated coordinates. Can someone help me, please?
1 次查看(过去 30 天)
显示 更早的评论
please some body help??
2 个评论
Geoff Hayes
2019-1-31
M - what have you tried so far? Please show your work and describe any issues or errors that you have encountered.
Jan
2019-1-31
Please mention the details: Are the random diameters the floating point values from 1 to 20, or the integers? Does "between" mean inclusively or exclusively? Are the random diameters distributed equally or normally or what? What is the format of the output file? How can a "400x100" be a square and not a rectangle? How many random circles do you want? Do you want the package with the maximum number for a given set of circles? Or are the centers set randomly also?
Currently your question does not contain enough details to be answered and you did not show, what you have tried so far. It sounds like you want the forum to solve your homework.
回答(3 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Creating and Concatenating Matrices 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!