![photo](/responsive_image/150/150/0/0/0/cache/matlabcentral/profiles/13508797_1536589541452_DEF.jpg)
Brandon Morgan
2018년부터 활동
Followers: 0 Following: 0
Feeds
질문
I have a random number generator when the input selects the interval length and only runs it if it is between 50 and 200. I was wondering how do I round the output of random numbers so that they are only integers?(ex. 0,1,2,3,4,5,6,7,8,9 )
n= input('Enter Vector Size'); if n>=50 && n<=200 R= [0,1,2,3,4,5,6,7,8,9]; z = rand(n,1)*range(R)+min(R) ...
거의 6년 전 | 답변 수: 0 | 0
0
답변질문
Can anyone explain or show how to do this?
Prompt the user to enter a second INTEGER number (num2) from the keyboard where 2≤num2 ≤15 and then determine how many terms in...
거의 6년 전 | 답변 수: 1 | 0