MATLAB: Delete rows at intervals

delete rows

Hi, I have a very large matrix, and I would like to delete rows at specific intervals.
For example, I have the following matrix : [ 1 2 ; 3 4 ; 5 6 ; 7 8; 9 10; 11 12; 13 14; 15 16 ;17 18; 19 20; 21 22 ; 23 24]
I would like to delete every fourth row so the matrix looks like: [ 1 2; 3 4 ; 5 6; 9 10 ; 11 12; 13 14; 17 18; 19 20; 21 22 ]
Any help would be greatly appreciated.
Thanks,
Seamus

Best Answer

A(4:4:end,:) = [];