i want to pick n1*2 matrix (sub matrix 1) randomly from m*2 matrix (n1<m). condition is while picking n2*2 (submatrix 2) the rows of submatrix 1 should not be repeated in the subsequent selection. please help me

1 次查看(过去 30 天)
example:
A = [ 1 2 ; 3 4 ; 5 6 ; 7 8 ; 9 10; 11 12 ];
output should be
A1 = [ 1 2 ; 3 4 ];
A2 = [ 5 6 ; 7 8 ; ];
A3 = [ 9 10 ; 11 12];

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Creating and Concatenating Matrices 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by