Frage


Creating all possible combination of 0 and 1 in 2D array
Let the size of 2D matrix is (n rows, m cols). How can I create all possible combinations of 0 and 1 in this matrix?

mehr als 4 Jahre vor | 2 Antworten | 0

2

Antworten

Frage


Generating combination of binary numbers
Variable and are some integers and . I want to create permutation of 1s and 0s in the order shown below. Let and A = [1...

mehr als 4 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


Steepest descent method algorithm
For practice purpose, I want to find minima of -humps() function. I have written the following code but it's not giving correct...

fast 5 Jahre vor | 1 Antwort | 2

1

Antwort

Frage


storing value in 2D array in a parfor loop
I have something like following R = [1, 2, 3, 4, 5]; A1 = sparse(5,5); A2 = sparse(5,5); parfor i = 1 : size(A1,1) ...

fast 5 Jahre vor | 1 Antwort | 0

1

Antwort