# MATLAB: How to assign a column of pixels a zero value

columnsimage processingpixelszero

I have a grayscale image.
I want to assign pixels of the first 30 columns in this image a value of zero. How can this be done?
Thanks.

• data(:,1:30) = 0;