Skip to main content

All Questions

2 votes
0 answers
59 views

Optimize algorithm that generates the number of units in each binary state

TL;DR: I need to find all possible combinations of N row vectors (of size 1xB), whose row-wise sum produces the desired result vector (also of size 1xB). I have a binary matrix (1 or 0 entries only) ...
ammportal's user avatar
  • 991
2 votes
2 answers
104 views

Combination and Multiplying Rows of array in matlab

I have a matrix (89x42) of 0's and 1's that I'd like to multiply combinations of rows together. For example, for matrix input = [1 0 1 0 0 0 1 1 0]; and with 2 combinations, I ...
Yue Yang's user avatar