MATLAB: How to add 0’s to the first row first coloumn and last row last column in 256×256 image making it 258×258

addition of rows and coloumndeletion of rows and coloumn

i want to increase the image size from 256×256 to 258×258 by inserting 0's to the fisrt row coloumn and last row and coloumn. how to do in matlab

Best Answer

padarray(x,[1 1])