Domanda


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?

oltre 8 anni fa | 1 risposta | 0

1

risposta

Domanda


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?

oltre 8 anni fa | 0 risposte | 0

0

risposte

Domanda


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

oltre 8 anni fa | 1 risposta | 0

1

risposta

Domanda


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]

oltre 8 anni fa | 1 risposta | 0

1

risposta

Domanda


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?

oltre 8 anni fa | 1 risposta | 0

1

risposta

Domanda


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

oltre 8 anni fa | 3 risposte | 0

3

risposte