Hi,
I have 2 arrays and I want to make subarrays by selecing a combination of 2 rows from each but the selected index should be the same. e.g A = [1 1 1 1 ;2 2 2 2 ;3 3 3 3 ;4 4 4 4 4 ] and B = [5 5 5 5; 6 6 6 6; 7 7 7 7;8 8 8 8].
So If I am selecting rows 1&3 from A, B should also have the same selection.
A_sub = [ 1 1 1 1;3 3 3 3], B_sub = [5 5 5 5; 7 7 7 7].
I tried sampling but it does not work, the row index changes. Would highly appreciate any feedback.