generate uniform random numbers between -1 and +1 in matlab

4 ビュー (過去 30 日間)
Sajid Sarwar
Sajid Sarwar 2019 年 12 月 14 日
コメント済み: Image Analyst 2019 年 12 月 14 日
how o generate uniform random numbers between -1 and +1 in matlab?

採用された回答

David Hill
David Hill 2019 年 12 月 14 日
  2 件のコメント
Sajid Sarwar
Sajid Sarwar 2019 年 12 月 14 日
I need a random array between -1 & 1
Image Analyst
Image Analyst 2019 年 12 月 14 日
Did youi look at the help for rand()? It answers both your original question and this follow up question
randomMatrix = 2 * rand(rows, columns) - 1;
where you set rows and columns to whatever values you want.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeRandom Number Generation についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by