Dividing a matrix into two parts
问题 I am trying to classify my dataset. To do this, I will use the 4th column of my dataset. If the 4th column of the dataset is equal to 1, that row will added in new matrix called Q1 . If the 4th column of the dataset is equal to 2, that row will be added to matrix Q2 . My code: i = input('Enter a start row: '); j = input('Enter a end row: '); search = importfiledataset('search-queries-features.csv',i,j); [n, p] = size(search); if j>n disp('Please enter a smaller number!'); end for s = i:j