Random number with a large range?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
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 Kommentare
Antworten (1)
Peter Perkins
am 14 Nov. 2013
Bob, I think you want to look at Example 1 in the doc for the rand function:
0 Kommentare
Siehe auch
Kategorien
Mehr zu Gravitation, Cosmology & Astrophysics finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!