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
Or you could try it like this:
A = binornd(ones(50,10),p);
This way you also have the option to control the probability of occurrence of ones.