Thats my code
X=[x1 x2 x3]; %25by3 matrix
%
k = randperm(size(X,1)); Ex_Ran= X(k(1:10),:)%extract 10 rows randomly
remove rows and reconstruct the original matrix
X=[x1 x2 x3]; %25by3 matrix
%
k = randperm(size(X,1)); Ex_Ran= X(k(1:10),:)%extract 10 rows randomly
Best Answer