i want produce a random number between 2 and 10 for example...

조회 수: 1 (최근 30일)
fatemeh
fatemeh 2013년 10월 19일
댓글: Azzi Abdelmalek 2013년 10월 20일
how can produce a random integer number that are not started with 1?

채택된 답변

Azzi Abdelmalek
Azzi Abdelmalek 2013년 10월 19일
2+rand*(10-2)

추가 답변 (1개)

LY Cao
LY Cao 2013년 10월 19일
randi(9)+1

카테고리

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