How to generate binary samples
16 ビュー (過去 30 日間)
古いコメントを表示
how to generate binary sample for given input signals for example xor function of two input signals with 32 binary samples
0 件のコメント
回答 (1 件)
the cyclist
2014 年 8 月 30 日
If you have the Statistics Toolbox, you can use the binornd() function.
Alternatively, you could use randn() or rand():
randn() > 0
rand() > 0.5
will give 50% chance of either 0 or 1.
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!