how to create a binary random matrix
Mostra commenti meno recenti
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
Risposte (1)
Azzi Abdelmalek
il 5 Mag 2016
randi([0 1],4,2)
Categorie
Scopri di più su Creating and Concatenating Matrices in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!