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) Related SolutionsMATLAB: Deleting a Column from an array If ‘M’ is your matrix, just set the entire column to the empty array []:M(:,190) = []; MATLAB: Dct (8*8) If you have the Image Processing Toolbox.X = randn(100,100);fun = @(block_struct) dct2(block_struct.data);Y = blockproc(X,[8 8],fun); Related QuestionPicking indices randomlyQuestion with a row matrix (simple)Finding elements of an arrays having specified index numbersTurning array values into values on an x axisCreate an array from other arrayHow many positive entries in array
Best Answer