フィルターのクリア

how to create a binary random matrix

1 回表示 (過去 30 日間)
loukil sana
loukil sana 2016 年 5 月 5 日
回答済み: Azzi Abdelmalek 2016 年 5 月 5 日
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
Azzi Abdelmalek 2016 年 5 月 5 日
randi([0 1],4,2)

カテゴリ

Help Center および File ExchangeCreating and Concatenating Matrices についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by