How can I generate a random number between a specific range?

2 ビュー (過去 30 日間)
vitor peixoto
vitor peixoto 2019 年 4 月 20 日
回答済み: Walter Roberson 2019 年 4 月 20 日
Hi, I am Gabriela and I am from Portugal. I am doing the PhD in Industrial Engineering at the University of Minho.
  1. I want to generate random numbers in matriz form within a range of a uniform distribution between 50 and 100.
  2. Repeat the previous step for than more one matriz
  3. Save each matriz in a read document such as NotePad
Thanks,
Gabriela

回答 (1 件)

Walter Roberson
Walter Roberson 2019 年 4 月 20 日
rand(rows, columns) * 50 + 50
csvwrite

カテゴリ

Help Center および File ExchangeThingSpeak についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by