title: how to adjust matrix after convolution MATLAB
body: <p>Assume that I have greyscale image I that have 300 x 300 </p>
  
  <p>and I have matrix matrix M 3 x 3</p>
  
  <p>after the convolution</p>
  
  <pre><code>Ans = conv2(I,M);
  </code></pre>
  
  <p>ans will be matrix 304 x 304 => convolute will extend the matrix </p>
  
  <p>If I want the answer to be a matrix like I
  Can I force it like</p>
  
  <pre><code>Ans = Ans(1+2:304-2;1+2:304-2); 
  </code></pre>