MATLAB: Reduce size of matrix in matlab

simulink

hi everybody, i want reduce the size of matrix or cut some my column my matrix. i calculate k=conv(I*h) and make matrix with size 401*302 because the size of I=401*280 and h=1*23 after the conv the size of matrix equal 401*302 and now i want reduce the matrix as k=401*280 how can i cut or reduce the matrix?

Best Answer

Include the 'same' argument to comv to return only the central part of the convolution:
k=conv(I,h,'same');
Related Question