필터 지우기
필터 지우기

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 CenterFile Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by