generate uniform random numbers between -1 and +1 in matlab
3 ビュー (過去 30 日間)
古いコメントを表示
how o generate uniform random numbers between -1 and +1 in matlab?
0 件のコメント
採用された回答
David Hill
2019 年 12 月 14 日
2*rand()-1;
2 件のコメント
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 Exchange で Random Number Generation についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!