質問


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?

8年以上 前 | 1 件の回答 | 0

1

回答

質問


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?

8年以上 前 | 0 件の回答 | 0

0

回答

質問


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??

8年以上 前 | 1 件の回答 | 0

1

回答

質問


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]

8年以上 前 | 1 件の回答 | 0

1

回答

質問


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?

8年以上 前 | 1 件の回答 | 0

1

回答

質問


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

8年以上 前 | 3 件の回答 | 0

3

回答