matlab - Deleting every 26th row of a matrix starting with row 8 -



matlab - Deleting every 26th row of a matrix starting with row 8 -

apologies if relatively basic question - i'm still bit new programming, , particularly matlab. have 4940x4940 square matrix consists of 190 26x26 matrices. within each of these smaller matrices want delete every 8th row , column (thus deleting row , column 8, 34, 60 ... of overall matrix ).

what easiest way be?

thanks!

your title conflicts body of question, reply both. using colon operator step value can target specific rows remove. if want delete every 15th row of matrix x, utilize next code.

x(15:15:end,:) = [];

a similar process can used delete rows , columns @ intervals of 26 starting @ row or column 8.

x(8:26:end,:) = []; x(:,8:26:end) = [];

i suggest reading colon operator @ mathworks.

matlab matrix

Comments

Popular posts from this blog

javascript - THREE.js reposition vertices for RingGeometry -

javascript - I need to update the text of a paragraph by inline edit -

assembly - What is the addressing mode for ld, add, and rjmp instructions? -