MATLAB: Delete elements in a array

array

Hi, I have a large array. I want to delete certain elements in the array. I want to delete the 390th element, and then after that every 391th element……
So need to delete 390, 781, 1182 etc……….

Best Answer

So when you say "array", you mean a 1-D vector?
X = randn(49121,1);
indices = 390:391:length(X);
X(indices) = [];
length(X)