Borrar filtros
Borrar filtros

how to create a binary random matrix

1 visualización (últimos 30 días)
loukil sana
loukil sana el 5 de Mayo de 2016
Respondida: Azzi Abdelmalek el 5 de Mayo de 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

Respuestas (1)

Azzi Abdelmalek
Azzi Abdelmalek el 5 de Mayo de 2016
randi([0 1],4,2)

Categorías

Más información sobre Creating and Concatenating Matrices en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by