필터 지우기
필터 지우기

Random number with a large range?

조회 수: 2 (최근 30일)
Bob Freeman
Bob Freeman 2013년 11월 14일
답변: Peter Perkins 2013년 11월 14일
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??

답변 (1개)

Peter Perkins
Peter Perkins 2013년 11월 14일
Bob, I think you want to look at Example 1 in the doc for the rand function:

카테고리

Help CenterFile Exchange에서 Earth and Planetary Science에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by