提问


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 years 前 | 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 years 前 | 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 years 前 | 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 years 前 | 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 years 前 | 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 years 前 | 3 个回答 | 0

3

个回答