MATLAB: Image zero Padding row, column image processing I have an image[1102 x 1290]. But I need to resize this image so that it will be [1108 x 1300] in shape. How can I do that with zero padding? Best Answer I = rand(1102,1290) ;iwant = zeros(1108,1300) ;iwant(1:1102,1:1290) = I ; Related SolutionsMATLAB: How to calculate the area which located between curve and x-axis Try this:X = [1427.18976 1427.21024 1427.23072 1427.2512 1427.27168 1427.29216 1427.31264 1427.33312 1427.3536 1427.37408 1427.39456 1427.41504 1427.43552 1427.456];Y = [2098.083 2231.598 1888.275 1945.497 3280.65 6656.64 7667.55 7286.07 7514.94 7324.23 7095.33 6980.91 7534.02 7400.52];Z = trapz(X, Y) MATLAB: Zero padding Refer to padarray function. Related QuestionZero padding or notInterX issues. Showing intersection when there is none.Matrix padding with zero
Best Answer