MATLAB: Delete column from matrix

matrix column delete

Hi all,
I have a matrix 6964×1441. I would like to keep the column every 24 (keep column 24, 48, 72 etc) and delete the other which will create a matrix 6964×60. Can someone help me pelase?
regards
Jonathan

Best Answer

Where M is your matrix:
M = M(:,24:24:end)