title: How to find the mean square error in matlab
body: <p>Is there a way to find the mean square error in matlab between 2 images A,B(say) in true color of dimension 256*256*3 ? The mathematical formula for a matrix say M1 and M2 is as under</p>
  
  <pre><code>mean sq err=1/n*n { summation (square[M1(i,j)-M2(i,j)])}
  </code></pre>
  
  <p>where i stands for row and j stands for column</p>