필터 지우기
필터 지우기

random numbers in between two ranges

조회 수: 2 (최근 30일)
Mudasir Ahmed
Mudasir Ahmed 2015년 6월 13일
댓글: Mudasir Ahmed 2015년 6월 13일
hi
i want one random number generated between two ranges Like 20 and 50. i there any command who can do this. kindly help me
regards

채택된 답변

Azzi Abdelmalek
Azzi Abdelmalek 2015년 6월 13일
편집: Azzi Abdelmalek 2015년 6월 13일
a=20
b=50
n=1000
v=a+(b-a)*rand(1,n)

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by