How can I generate a random number between a specific range?
이전 댓글 표시
Hi, I am Gabriela and I am from Portugal. I am doing the PhD in Industrial Engineering at the University of Minho.
- I want to generate random numbers in matriz form within a range of a uniform distribution between 50 and 100.
- Repeat the previous step for than more one matriz
- Save each matriz in a read document such as NotePad
Thanks,
Gabriela
답변 (1개)
Walter Roberson
2019년 4월 20일
0 개 추천
rand(rows, columns) * 50 + 50
csvwrite
카테고리
도움말 센터 및 File Exchange에서 Dynamic System Models에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!