MATLAB: Deleting a Column from an array

arraycolumndeleterow

I am given a 21 x 345 array. I need to delete JUST column 190. How would I do so and keep all the rest the same so that it is a 21 x 344 array

Best Answer

If ‘M’ is your matrix, just set the entire column to the empty array []:
M(:,190) = [];
Related Question