Using rand function to generate a certain parameter of numbers

How do I use the rand() function to generate two vectors with 10000 elements ranging between 5 and -5 uniformly? Thank you!

답변 (1개)

Steven Lord
Steven Lord 2020년 10월 5일

0 개 추천

See the "Random Numbers Within Specified Interval" example on the documentation page for the rand function.

카테고리

도움말 센터File Exchange에서 Random Number Generation에 대해 자세히 알아보기

질문:

2020년 10월 5일

답변:

2020년 10월 5일

Community Treasure Hunt

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

Start Hunting!

Translated by