I want to divide this vector [7 3 3 3 3 3 2 1 1 2] into 2 vectors that complement each other, for example: divide it to : A = [4 2 1 2 1 1 1 1 1 0] and B = [3 1 2 1 2 2 1 0 0 2] .. How can I obtain the all combinations of these 2 vectors ?
MATLAB: I want to divide one vector to two vectors that complement each other .. How to obtain all possible combinations of these 2 vectors
matricesvectors
Best Answer