Bob, I think you want to look at Example 1 in the doc for the rand function:
Random number with a large range?
2 次查看(过去 30 天)
显示 更早的评论
I am simulating planetary motion, and I want to have an input for 'n' random planets. I want the planets to have a large range for each of the criteria ie, x_position is between -1e12 - 1e12. how can i do this??
0 个评论
回答(1 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Earth and Planetary Science 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!