I want to create a matrix in matlab with 500 cell (50 row,10 column ), How I can create and initialize it by random binary digits? I want some thing like this in 50*10 scal
Why not use randi to generate random integers?
randi
A = randi([0 1], 50, 10);
and to convert a binary row to a number - as in the previous answers:
bin2dec(num2str(A(n,:)))