title: Matlab: how do I change the way a matrix is stored? from 1x1x3 to 1x3?
body: <p>I currently have: </p>
  
  <pre><code>val(:,:,1) =
  
      0.7216
  
  val(:,:,2) =
  
      0.7216
  
  val(:,:,3) =
  
      0.7216
  </code></pre>
  
  <p>But I want</p>
  
  <pre><code>0.7216, 0.716, 0.721.
  </code></pre>
  
  <p>What sort of operation can I do to do that?</p>