Can I fixed number of rows randomly from the dataset?
example
A=[1 2 3 4;
5 6 7 8;
9 10 11 12;
13 14 15 16;
17 18 19 20];
I want to random select training dataset 3 rows and random select testing dataset 2 rows.
training_dataset= [1 2 3 4;
13 14 15 16;
5 6 7 8;];
and
testing_dataset= [ 9 10 11 12;
17 18 19 20];
I found only the random number from the array.
Thank you so much