How can I make a random array with values of either -1 or 1?
3 ビュー (過去 30 日間)
古いコメントを表示
I'm trying to use randi to make a matrix filled with either -1 or 1 however randi also includes 0s.
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!