how to create a binary random matrix
Ältere Kommentare anzeigen
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
Antworten (1)
Azzi Abdelmalek
am 5 Mai 2016
randi([0 1],4,2)
Kategorien
Mehr zu Creating and Concatenating Matrices finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!