How to produce 1 and -1 in MATLAB
2 ビュー (過去 30 日間)
古いコメントを表示
Hello all, I want to generate 2000 numbers out of which 50% times it should be +1 and for remaining 1000 it should be -1.
Any help in this regard will be highly appreciated.
0 件のコメント
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!