### Possible Answer

fi = 1/3. x = randi([0 1],1,9); while (mean(x)~= fi) x = randi([0 1],1,9); end. This finds a random 3 x 3 binary matrix with 3 ones, but for a 4x4 matrix and larger ... - read more

I need to generate a Gaussian Random Signal using the randn function, with mean 0 and variance 1. After using help randn I found many ways to use the randn function. - read more

Please vote if the answer you were given helped you or not, thats the best way to improve our algorithm. You can also submit an answer or search documents about matlab random matrix 0 and 1.