Borrar filtros
Borrar filtros

Random number with a large range?

1 visualización (últimos 30 días)
Bob Freeman
Bob Freeman el 14 de Nov. de 2013
Respondida: Peter Perkins el 14 de Nov. de 2013
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??

Respuestas (1)

Peter Perkins
Peter Perkins el 14 de Nov. de 2013
Bob, I think you want to look at Example 1 in the doc for the rand function:

Categorías

Más información sobre Gravitation, Cosmology & Astrophysics en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by