title: Repeating matrix in matlab
body: <p>I have a square matrix say n by n; I want to expand this matrix to n^2 by n^2 such that values in the position are repeated. 
  e.g A matrix is <br/>
  <br/>
  2 3<br/>
  5 6 <br/></p>
  
  <p>I want to generate matrix B such that</p>
  
  <p>2 2 3 3 <br/>
  2 2 3 3 <br/>
  5 5 6 6 <br/>
  5 5 6 6 <br/> </p>
  
  <p>How can this be done in matlab? And need to be generalized for any square matrix</p>
  
  <p>Additional question: If I want to duplicate like following <br/>
  2 3 2 3 <br/>
  5 6 5 6 <br/>
  2 3 2 3 <br/>
  5 6 5 6 <br/></p>
  
  <p>How this can be archived ? </p>