Random number with a large range?
1 回表示 (過去 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 件)
Peter Perkins
2013 年 11 月 14 日
Bob, I think you want to look at Example 1 in the doc for the rand function:
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Gravitation, Cosmology & Astrophysics についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!