how to create a binary random matrix
古いコメントを表示
hi, i want to create a binary random matrix of (4,2). matrix row could be: 0 0 or 0 1 or 1 0 or 1 1. how can i do that please. thanks
回答 (1 件)
Azzi Abdelmalek
2016 年 5 月 5 日
randi([0 1],4,2)
カテゴリ
ヘルプ センター および File Exchange で Creating and Concatenating Matrices についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!