Effacer les filtres
Effacer les filtres

how to create a binary random matrix

1 vue (au cours des 30 derniers jours)
loukil sana
loukil sana le 5 Mai 2016
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

Réponses (1)

Azzi Abdelmalek
Azzi Abdelmalek le 5 Mai 2016
randi([0 1],4,2)

Catégories

En savoir plus sur Creating and Concatenating Matrices dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by