Hi everyone,
I need to know that how can I generate 2 subsets randomly from a matrix? For example, my reference matrix is 10*1, and I'm going to generate 2 matrix with 4*1 and 6*1, without any repetition of the arrays in both the subsets. I'm aware about 'Randperm' and generation the first subset using that, but when I need to generate the second subset, I'm not able to extract remained arrays from the matrix and to incorporate the second subset!numerically, I want something like the following:
A=[1 3 5 6 2 4 7 ]; % The reference matrix
b=[5 3 4 1]; % Subset 1
c=[1 7 6 5]; % Subset 2
Thanks
Best Answer