Is there a fast way to remove rows and columns from a large matrix in MATLAB?
I have a very large (square) distance matrix, that I want to remove a number of rows/co
I think it will depend on your usage, but I have two ideas:
A = D(randsample(s,2), randsample(s,2)); clear D; % Use A