title: vectorization of flip left-right of a 3D matrix using Matlab
body: <p>I have a 3D matrix of a movie (say a matrix <code>M</code> of size J*K*L). I want to flip left right each frame. Using <code>fliplr(M)</code> doesn't work as <code>M</code> must be a 2-D matrix. I know I can use a for loop of the following:</p>
  
  <pre><code> for ii=1:size(M,3)
       M(:,:,ii)=fliplr( M(:,:,ii) )
   end
  </code></pre>
  
  <p>Is the a "vectorized" way to do it? </p>
  
  <p>More generally speaking, is the a "vectorized" way to do any of Matlab's matrix manipulations (<code>flipud</code>, <code>repmat</code>, etc) in this case?</p>