title: Non-circular shift in Matlab?
body: <p>Matlab has <code>circshift</code> which shifts matrix circularly, i.e. putting shifted out elements to opposite side. </p>
  
  <p>Is there a function which shifts matrix with copying last values or padding new space with zeros? Like bitwise shift in C/C++ does?</p>
  
  <p><strong>UPDATE</strong></p>
  
  <p>I know I can write function myself.</p>