Random number with a large range?

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??

Risposte (1)

Peter Perkins
Peter Perkins il 14 Nov 2013

0 voti

Bob, I think you want to look at Example 1 in the doc for the rand function:

Categorie

Scopri di più su Earth and Planetary Science in Centro assistenza e File Exchange

Richiesto:

il 14 Nov 2013

Risposto:

il 14 Nov 2013

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by