Question


Hi, is there any way, I can save a random binary data after generating it?any suggestion would be appreciated! thank you
Example, after generating a long binary data a=[1 0 0 1 0 0 1 1 1 ]; how do I save it?

mer än 8 år ago | 1 answer | 0

1

answer

Question


Hi,,Is there any way that in a matrix is a particular position holds one?
like for a matrix H=[1 2 3;3 1 2]..iwant to check if position 1st and fifth holds one or not? how do I do that?

mer än 8 år ago | 0 answers | 0

0

answers

Question


Hi, is it possible to count the number of ones in a matrix ?
Example: Suppose we a have a matrix A=[1 0 0 1 0 0; 1 0 0 0 1 1]; how do I count the number of ones in this matrix??

mer än 8 år ago | 1 answer | 0

1

answer

Question


Is there any way to put a small matrix diagonally into a larger one?
ex: [1 2;3 4] Big matrix :[1 2 0 0 0 0; 3 4 0 0 0 0; 0 0 1 2 0 0 0 0 3 4 0 0]

mer än 8 år ago | 1 answer | 0

1

answer

Question


Is it possible to create a vector with a specified number of ones? eg . V=[ 1 1 1 1 0 0 0 0 0 0 0 0]
I am trying to generate a vector with specified number of ones in it? Using for loop ,is it possible to generate it?

mer än 8 år ago | 1 answer | 0

1

answer

Question


how do I generate a binary matrix with specified number of 'ones' in each row & column?
Is there any algorithm to do that?

mer än 8 år ago | 3 answers | 0

3

answers