Random secuence {-3,-1,1,3}
1 回表示 (過去 30 日間)
古いコメントを表示
Hi All, how can I build a random secuence to obtain this values {-3,-1,1,3}?
0 件のコメント
回答 (1 件)
Rick Rosson
2014 年 10 月 22 日
編集済み: Rick Rosson
2014 年 10 月 22 日
x = 2*randi([0 3],100,1) - 3;
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!